Commit 25fd833e authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Add quick helper scripts.

parent bc630c94
grep ^key /etc/opt/slapcache.cfg | cut -f3 -d\
HERE=`pwd`
rm -rf /tmp/tmpplaybook_*
DFILE="/tmp/tmpplaybook_unstable$(basename $0).$$/"
TFILE="archive.tar.gz"
mkdir -p $DFILE
cd $DFILE
slapcache-download --destination=$TFILE
tar -xzf $TFILE
rm $TFILE
diff -ruw $HERE $DFILE
rm /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && slapcache-upload --file=/tmp/archive.tar.gz
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