#!/bin/bash -x

GITPROJ=https://chaos.expert/ccc-ffm/4Refugees-InternetCafe


if [ "$1" != "RUNME" ]; then

    #pull myself from git repo
    wget "${GITPROJ}/raw/master/bootstrap.sh" -O /root/bootstrap.sh
    chmod u+x /root/bootstrap.sh
    exec /root/bootstrap.sh RUNME
fi



echo yayyay


exit

mv /etc/puppet /etc/puppet.orig

git clone https://chaos.expert/ccc-ffm/4Refugees-InternetCafe.git /etc/puppet

cd /etc/puppet
git submodule init
git submodule update
puppet apply /etc/puppet/manifests/site.pp
