download-upgrader-playbook 275 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash

if [ ! -f /etc/opt/slapcache.cfg ]; then
  slapcache-conf
fi

DFILE="/opt/upgrader/"
TFILE="archive.tar.gz"

mkdir -p $DFILE
cd $DFILE

13
/usr/local/bin/slapcache-download --destination=$TFILE
14 15 16
tar -xzvf $TFILE

md5sum $TFILE > "/opt/upgrader/next-upgrader-md5sum"