summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/create-supernode-tar
blob: 1e90c26cb3600ff4a39cb5b70b1d24f3d1dd3d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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/tinc_stats/Supernodes.py |cut -d\  -f1`
chmod a+rx $HOSTFILE