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