Skip to content

Instantly share code, notes, and snippets.

@oodavid
Last active December 27, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oodavid/7290587 to your computer and use it in GitHub Desktop.
Save oodavid/7290587 to your computer and use it in GitHub Desktop.
Install NexGen Server
#!/bin/bash
#
# Install NexGen Server
# https://gist.github.com/oodavid/7290587
#
# To download
# cd /home/ubuntu/
# wget -O nexgen.pull.sh https://gist.github.com/oodavid/7290587/raw/nexgen.pull.sh
#
# To run at boot
# sudo chmod 0777 nexgen.pull.sh
# sudo nano /etc/rc.local
# Add the following:
# # Pull from github
# sudo -Hu www-data /home/ubuntu/nexgen.pull.sh
# CD into the folder
cd /var/www/html
# Get yer coat, you've pulled
git pull
# Update the submodules
git submodule sync
git submodule update
# Make our healthy file for auto-scaling (this file is .gitignored)
echo 'Git Ready!' > healthy-aws.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment