testing self updating bootstrap
authorWonko T. Sane <42@wonko.de>
Mon, 14 Mar 2016 14:31:52 +0000 (15:31 +0100)
committerWonko T. Sane <42@wonko.de>
Mon, 14 Mar 2016 14:31:52 +0000 (15:31 +0100)
bootstrap.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b0d783c..826265f
@@ -1,4 +1,21 @@
-#!/bin/env bash
+#!/bin/env bash -e -x
+
+GITPROJ=https://chaos.expert/ccc-ffm/4Refugees-InternetCafe
+
+
+if [ "$1" != "RUNNME" ]; then
+
+    #pull myself from git repo
+    wget "${GITPROJ}/raw/master/bootstrap.sh" -O /root/bootstrap.sh
+    exec /root/bootstap.sh RUNME
+fi
+
+
+
+echo yay
+
+
+exit
 
 mv /etc/puppet /etc/puppet.orig
 
@@ -8,4 +25,3 @@ cd /etc/puppet
 git submodule init
 git submodule update
 puppet apply /etc/puppet/manifests/site.pp
-