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" != "RUNNME" ]; then
7
8     #pull myself from git repo
9     wget "${GITPROJ}/raw/master/bootstrap.sh" -O /root/bootstrap.sh
10     exec /root/bootstap.sh RUNME
11 fi
12
13
14
15 echo yay
16
17
18 exit
19
20 mv /etc/puppet /etc/puppet.orig
21
22 git clone https://chaos.expert/ccc-ffm/4Refugees-InternetCafe.git /etc/puppet
23
24 cd /etc/puppet
25 git submodule init
26 git submodule update
27 puppet apply /etc/puppet/manifests/site.pp