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` HERE=`pwd`
rm -rf /tmp/tmpplaybook_* DFILE=`mktemp -d`
DFILE="/tmp/tmpplaybook_unstable$(basename $0).$$/"
TFILE="archive.tar.gz" TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE cd $DFILE
slapcache-download --destination=$TFILE slapcache-download --destination=$TFILE
tar -xzf $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