#!/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

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
