diff options
author | euer <root@euer.krebsco.de> | 2012-11-29 17:36:05 +0100 |
---|---|---|
committer | euer <root@euer.krebsco.de> | 2012-11-29 17:36:05 +0100 |
commit | 9df3e874598a68873df94ffa344e3c172824736a (patch) | |
tree | ce091bc1eebf6f684f865405a815ff9c48878693 /retiolum/bin/create-host-tar | |
parent | 176cba685830af99bf2d4d8278ef01686c894dca (diff) |
add github_listener
a listener which fires create-host-tar every time being hit by github webhook
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 |