Commit 2773290b authored by Rafael Monnerat's avatar Rafael Monnerat

web_deploy: use download_playbook function directly

See merge request nexedi/slapos.core!426
parents e9276809 cfeeed8b
...@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then ...@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi fi
sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-testing-key/g" /etc/opt/slapcache.cfg sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-testing-key/g" /etc/opt/slapcache.cfg
DFILE=$(mktemp -d -t tmpplaybook_unstable"$(basename "$0")".XXXXXXXXXXXX) download_playbook
TFILE="archive.tar.gz"
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
...@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then ...@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi fi
sed -i "s/key = slapos-global-key/key = slapos-global-unstable-key/g" /etc/opt/slapcache.cfg sed -i "s/key = slapos-global-key/key = slapos-global-unstable-key/g" /etc/opt/slapcache.cfg
DFILE=$(mktemp -d -t tmpplaybook_unstable"$(basename "$0")".XXXXXXXXXXXX) download_playbook
TFILE="archive.tar.gz"
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
...@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then ...@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi fi
sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-key/g" /etc/opt/slapcache.cfg sed -i "s/key = slapos-global-key/key = slapos-global-official-vifib-key/g" /etc/opt/slapcache.cfg
DFILE=$(mktemp -d -t tmpplaybook_unstable"$(basename "$0")".XXXXXXXXXXXX) download_playbook
TFILE="archive.tar.gz"
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
\ No newline at end of file
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