diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-12-21 00:21:18 +0000 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-12-21 00:21:18 +0000 |
commit | 978c17f470d93712dbe42b81bf4311ac163199a8 (patch) | |
tree | 0f200727a9555825a6aca870b04300caa4fce9e2 /contrib/peer2anonet | |
parent | c861158c8cd34972db168c2c06ce63ba6072b30e (diff) | |
download | resdb-978c17f470d93712dbe42b81bf4311ac163199a8.tar.gz resdb-978c17f470d93712dbe42b81bf4311ac163199a8.zip |
forced exit 1 for --configure-dns if someone didn't
configure their tinydns data first.
Diffstat (limited to 'contrib/peer2anonet')
-rwxr-xr-x | contrib/peer2anonet/peer2anonet | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index 4895df2..715f507 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -413,14 +413,14 @@ CONFIGURE_DNS(){ ) echo -e '\nCONFIGURE DNS:\n' - NICK=`cat conf/git_name` - TINYDNS_ROOT_IP=`cat conf/tinydns__rootsrvrip` - TINYDNS_ROOT_DOMAIN=`cat conf/tinydns__rootsrvrname` - TINYDNS_ANO_IP=`cat conf/tinydns__tldsrvrip` - TINYDNS_ANO_DOMAIN=`cat conf/tinydns__tldsrvrname` - TINYDNS_IP=`cat conf/tinydns__srvrip` - TINYDNS_DOMAIN=`cat conf/tinydns__srvrname` - GIT_IP=`cat conf/gitd_ip` + NICK=`cat conf/git_name` || exit 1 + TINYDNS_ROOT_IP=`cat conf/tinydns__rootsrvrip` || exit 1 + TINYDNS_ROOT_DOMAIN=`cat conf/tinydns__rootsrvrname` || exit 1 + TINYDNS_ANO_IP=`cat conf/tinydns__tldsrvrip` || exit 1 + TINYDNS_ANO_DOMAIN=`cat conf/tinydns__tldsrvrname` || exit 1 + TINYDNS_IP=`cat conf/tinydns__srvrip` || exit 1 + TINYDNS_DOMAIN=`cat conf/tinydns__srvrname` || exit 1 + GIT_IP=`cat conf/gitd_ip` || exit 1 GIT_DOMAIN="git.$NICK.ano" ip addr add $TINYDNS_ROOT_IP/32 dev lo > /dev/null 2>&1 |