summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-14 22:45:58 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-14 22:45:58 +0200
commitdc42059c52e8fd422b6005e38e1a2284ed15d834 (patch)
treece74fc825b8e4924015988f483440895bd06486e /hosts
parent924d6b8a900b7bbcadf240e66ad714fc531550c4 (diff)
updated debian build script to behave correctly in the current context
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/.scripts/build_debian.sh26
1 files changed, 19 insertions, 7 deletions
diff --git a/hosts/.scripts/build_debian.sh b/hosts/.scripts/build_debian.sh
index d8fcec2f..ddc63aed 100755
--- a/hosts/.scripts/build_debian.sh
+++ b/hosts/.scripts/build_debian.sh
@@ -1,16 +1,28 @@
#!/bin/bash
set -x
-MYIP=10.0.7.7.55
+if [ ! "$MYIP" ]
+then
+ MYIP=10.0.7.7.55
+fi
+if [ ! "$MYHOSTNAME" ]
+then
+ MYHOSTNAME="penis"
+fi
+if [ "$MYHOSTNAME" = "penis" ];
+then
+ read -n1 -p "name is penis, are u sure? [yN]"
+ if [[ "$REPLY" != [yY] ]]
+ then
+ echo "then better RTFC"
+ echo "bailing out"
+ exit 0
+ fi
+fi
apt-get install tinc git curl python
-git clone https://github.com/makefu/shack-retiolum.git
+./install.sh "$MYHOSTNAME" "$MYIP"
-cd shack-retiolum
-
-./install.sh `hostname` $MYIP
-cd ..
-rm shack-retiolum
# for autostart
sed -i '/retiolum/d' /etc/tinc/nets.boot
echo "retiolum" >> /etc/tinc/nets.boot