Commit 514e713a authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

[playbook] Use mktemp for temporary location

Instead of chosing arbitrary directory and removing, often not
accessible directories, use standard mktemp for temporary location.

/reviewed-on nexedi/slapos.package!28
parent b5ad7bf4
HERE=`pwd`
rm -rf /tmp/tmpplaybook_*
DFILE="/tmp/tmpplaybook_unstable$(basename $0).$$/"
DFILE=`mktemp -d`
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE
slapcache-download --destination=$TFILE
tar -xzf $TFILE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment