diff options
| author | root <root@dev64.stacklet.com> | 2013-01-02 18:34:41 +0000 | 
|---|---|---|
| committer | root <root@dev64.stacklet.com> | 2013-01-02 18:34:41 +0000 | 
| commit | c971ce27a09d4aa5e740fda3664c8a8181de3233 (patch) | |
| tree | 2db7dd4707781acc06958fce35658c0cf8f4b008 /retiolum/bin/create-supernode-tar | |
| parent | a80634362df520d6f3fa2e90e7ed3c9523367488 (diff) | |
fix adv_graphgen, github_listener
Diffstat (limited to 'retiolum/bin/create-supernode-tar')
| -rwxr-xr-x | retiolum/bin/create-supernode-tar | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/retiolum/bin/create-supernode-tar b/retiolum/bin/create-supernode-tar new file mode 100755 index 00000000..322d428d --- /dev/null +++ b/retiolum/bin/create-supernode-tar @@ -0,0 +1,13 @@ +#!/bin/sh +set -euf +if [ x"${1:-}" = "x" ];then +	echo "usage: $0 DIRECTORY" +	exit 1 +fi +HOSTDIR=${HOSTDIR:-../hosts} +WEBDIR=$1 +HOSTFILE=$WEBDIR/supernodes.tar.gz +cd $(dirname $(readlink -f $0)) +rm -f $HOSTFILE +tar czf $HOSTFILE  -C $HOSTDIR `python ../scripts/adv_graphgen/find_super.py |cut -d\  -f1` +chmod a+rx $HOSTFILE | 
