Commit cfeeed8b authored by Jérome Perrin's avatar Jérome Perrin

web_deploy: use download_playbook function directly

These scripts were re-implementing the download logic of download_playbook
with the difference being using a different name for the temporary file,
but we don't care about the temporary file name

Another difference was to edit slapcache.cfg once it is downloaded,
this part, we need to keep it.
parent e9276809
......@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
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)
TFILE="archive.tar.gz"
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
download_playbook
......@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
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)
TFILE="archive.tar.gz"
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
download_playbook
......@@ -4,9 +4,4 @@ if [ ! -f /etc/opt/slapcache.cfg ]; then
fi
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)
TFILE="archive.tar.gz"
cd "$DFILE" || exit 1
slapcache-download --destination=$TFILE
tar -xzvf $TFILE
rm $TFILE
\ No newline at end of file
download_playbook
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