Commit d187fa7a authored by Łukasz Nowak's avatar Łukasz Nowak

playbook (util): Allow to choose configuration file

parent ba463d60
......@@ -5,6 +5,9 @@ fi
set -e
conf=${1:-/etc/opt/slapcache.cfg}
conf=$(realpath $conf)
function cleanup {
rm -fr "$DFILE"
}
......@@ -14,7 +17,7 @@ HERE=`pwd`
DFILE=`mktemp -d`
TFILE="archive.tar.gz"
cd $DFILE
slapcache-download --destination=$TFILE
slapcache-download --slapos-configuration=$conf --destination=$TFILE
tar -xzf $TFILE
rm $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