testing self updating bootstrap
[inetstation.git] / bootstrap.sh
1 #!/bin/bash -x
2
3 GITPROJ=https://chaos.expert/ccc-ffm/4Refugees-InternetCafe
4
5
6 if [ "$1" != "RUNME" ]; then
7
8     #pull myself from git repo
9     wget "${GITPROJ}/raw/master/bootstrap.sh" -O /root/bootstrap.sh
10     chmod u+x /root/bootstrap.sh
11     exec /root/bootstrap.sh RUNME
12 fi
13
14
15
16 echo yayyay
17
18
19 exit
20
21 mv /etc/puppet /etc/puppet.orig
22
23 git clone https://chaos.expert/ccc-ffm/4Refugees-InternetCafe.git /etc/puppet
24
25 cd /etc/puppet
26 git submodule init
27 git submodule update
28 puppet apply /etc/puppet/manifests/site.pp