summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2012-10-29 04:50:41 +0000
committerd3v11 <d3v11@d3v11.ano>2012-10-29 04:50:41 +0000
commitb5e16e476f1665b88f4d24f17369a598a7062c89 (patch)
tree7bacf9a9705c2346df1bf03c38e8d95af6facbfb
parent71594f7359f6a612dd078ff65919cc2e27fe1474 (diff)
downloadresdb-b5e16e476f1665b88f4d24f17369a598a7062c89.tar.gz
resdb-b5e16e476f1665b88f4d24f17369a598a7062c89.zip
[peer2anonet] fck gentoo
-rwxr-xr-xcontrib/peer2anonet/peer2anonet24
1 files changed, 15 insertions, 9 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index 340c3c2..146770f 100755
--- a/contrib/peer2anonet/peer2anonet
+++ b/contrib/peer2anonet/peer2anonet
@@ -431,8 +431,14 @@ SETUP_QMAIL(){
echo "ip addr add $MX_IP/32 dev lo &" >> /etc/rc.d/rc.local
fi
else
- echo " fatal error: cannot reliably assign ip's to startup"
- exit 1
+ (
+ mkdir -p /services/qmail-ips
+ echo "#!/bin/sh -e" > /services/qmail-ips/run
+ echo "ip addr add $MX_IP/32 dev lo &" >> /services/qmail-ips/run
+ echo "svc -d ." /services/qmail-ips/run
+ chmod +x /services/qmail-ips/run
+ test -L /service/qmail-ips || ln -s /services/qmail-ips /service/qmail-ips
+ )
fi
ip addr add $MX_IP/32 dev lo > /dev/null 2>&1
@@ -623,17 +629,17 @@ CONFIGURE_DNS(){
ip addr add $TINYDNS_ANO_IP/32 dev lo > /dev/null 2>&1
ip addr add $GIT_IP/32 dev lo > /dev/null 2>&1
- useradd Gdnscache
- useradd Gdnslog
- useradd Gtinydns
+ useradd gdnscache
+ useradd gdnslog
+ useradd gtinydns
- dnscache-conf Gdnscache Gdnslog /services/dnscache
+ dnscache-conf gdnscache gdnslog /services/dnscache
mv /services/dnscache/root/servers/@ /services/dnscache/root/servers/@.icann
echo $TINYDNS_ROOT_IP >/services/dnscache/root/servers/@
echo 'nameserver 127.0.0.1' >/etc/resolv.conf
- tinydns-conf Gtinydns Gdnslog /services/tinydns $TINYDNS_IP
+ tinydns-conf gtinydns gdnslog /services/tinydns $TINYDNS_IP
(
cd /services/tinydns/root
./add-ns $NICK.ano $TINYDNS_IP
@@ -643,11 +649,11 @@ CONFIGURE_DNS(){
make
)
- tinydns-conf Gtinydns Gdnslog /services/tinydns-root $TINYDNS_ROOT_IP
+ tinydns-conf gtinydns gdnslog /services/tinydns-root $TINYDNS_ROOT_IP
./scripts/nameserver_autogen/tinydns_root_datafile > /services/tinydns-root/root/data
( cd /services/tinydns-root/root ; make )
- tinydns-conf Gtinydns Gdnslog /services/tinydns-ano $TINYDNS_ANO_IP
+ tinydns-conf gtinydns gdnslog /services/tinydns-ano $TINYDNS_ANO_IP
./scripts/nameserver_autogen/tinydns_tld_datafile > /services/tinydns-ano/root/data
( cd /services/tinydns-ano/root ; make )