summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/create-host-tar
blob: 9def7cec2cac1cd51729a713f0f861085e85e7e7 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -xeuf
WEBDIR=${WEBDIR:-/srv/http/pub/retiolum}
HOSTFILE=$WEBDIR/hosts.tar.gz
cd $(dirname $(readlink -f $0))
git pull origin master || logger "cannot pull painload"
#rm $HOSTFILE
tar czf  $HOSTFILE  -C ../hosts .
chmod a+rx $HOSTFILE