summaryrefslogtreecommitdiffstats
path: root/hosts/.scripts
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-14 22:52:09 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-14 22:52:09 +0200
commit05518f5ee61f1d97a2829f47b13a01f7806ce47f (patch)
tree476ad373d10c0c96ef016a7db2f1546a4cb514dc /hosts/.scripts
parentdc42059c52e8fd422b6005e38e1a2284ed15d834 (diff)
added bootstrap script
use the bootstrap code with: curl https://github.com/miefda/retiolum/raw/master/.scripts/bootstrap.sh | sh
Diffstat (limited to 'hosts/.scripts')
-rw-r--r--hosts/.scripts/bootstrap.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/hosts/.scripts/bootstrap.sh b/hosts/.scripts/bootstrap.sh
new file mode 100644
index 00000000..50356ac1
--- /dev/null
+++ b/hosts/.scripts/bootstrap.sh
@@ -0,0 +1,11 @@
+if [ `id -u` -eq "0" ]
+then
+ echo "not root, bailing out"
+ exit 1
+fi
+
+mkdir -p /etc/tinc/retiolum/
+git clone git://github.com/miefda/retiolum.git /etc/tinc/retiolum/hosts
+cd /etc/tinc/retiolum/hosts/.scripts
+
+echo "use the build script of your choice from /etc/tinc/retiolum/hosts/.scripts"