diff options
Diffstat (limited to 'retiolum/bin/create-host-tar')
-rwxr-xr-x | retiolum/bin/create-host-tar | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/retiolum/bin/create-host-tar b/retiolum/bin/create-host-tar new file mode 100755 index 00000000..344109d1 --- /dev/null +++ b/retiolum/bin/create-host-tar @@ -0,0 +1,8 @@ +#!/bin/sh +set -xeuf +WEBDIR=${WEBDIR:-/srv/http/pub/retiolum} +HOSTFILE=$WEBDIR/hosts.tar +cd $(dirname $(readlink -f $0)) +#rm $HOSTFILE +tar cf $HOSTFILE -C ../hosts . +chmod a+rx $HOSTFILE |