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

playbook (util): Allow to choose configuration file

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