Skip to content
Snippets Groups Projects
bootstrap.sh 510 B
Newer Older
  • Learn to ignore specific revisions
  • wonko's avatar
    wonko committed
    #!/bin/bash -x
    
    wonko's avatar
    wonko committed
    
    GITPROJ=https://chaos.expert/ccc-ffm/4Refugees-InternetCafe
    
    
    
    wonko's avatar
    wonko committed
    if [ "$1" != "RUNME" ]; then
    
    wonko's avatar
    wonko committed
    
        #pull myself from git repo
        wget "${GITPROJ}/raw/master/bootstrap.sh" -O /root/bootstrap.sh
    
    wonko's avatar
    wonko committed
        chmod u+x /root/bootstrap.sh
    
    wonko's avatar
    wonko committed
        exec /root/bootstrap.sh RUNME
    
    wonko's avatar
    wonko committed
    echo yayyay
    
    
    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