summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Richter <github@syntax-fehler.de>2011-05-26 21:06:40 +0200
committerFelix Richter <github@syntax-fehler.de>2011-05-26 21:06:40 +0200
commit05c586622db66f4f0259babe1c48dd906efc43a9 (patch)
tree7622f94d714e6e3fda38948536eb2936e95861aa
parentf56613952b89729e8b7d4d17fb0816e649a0ecd0 (diff)
fixed nasty username bug,debian build script
-rwxr-xr-xhosts/.scripts/tinc_setup/build_debian.sh2
-rwxr-xr-xhosts/.scripts/tinc_setup/install.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/hosts/.scripts/tinc_setup/build_debian.sh b/hosts/.scripts/tinc_setup/build_debian.sh
index ddc63aed..52e61390 100755
--- a/hosts/.scripts/tinc_setup/build_debian.sh
+++ b/hosts/.scripts/tinc_setup/build_debian.sh
@@ -28,3 +28,5 @@ sed -i '/retiolum/d' /etc/tinc/nets.boot
echo "retiolum" >> /etc/tinc/nets.boot
sed -i '/EXTRA/d' /etc/tinc/nets.boot
echo "EXTRA=\"\"" >> /etc/default/tinc
+
+/etc/init.d/tinc start
diff --git a/hosts/.scripts/tinc_setup/install.sh b/hosts/.scripts/tinc_setup/install.sh
index 4b21bcd4..89465b64 100755
--- a/hosts/.scripts/tinc_setup/install.sh
+++ b/hosts/.scripts/tinc_setup/install.sh
@@ -47,7 +47,7 @@ CHANNEL = '#tincspasm'
HOST='irc.freenode.net'
FILE="/etc/tinc/retiolum/hosts/$myname"
PORT=6667
-NICK= "$myname_"+str(random.randint(23,666))
+NICK= "${myname}_"+str(random.randint(23,666))
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect((HOST,PORT))
@@ -65,4 +65,3 @@ EOF
python write_channel.py
# add user tincd
useradd tincd
-tincd --user=tincd --chroot -n $netname