-
-
Save mattgillard/6882900cdeb3c2988e7e9e91e228f089 to your computer and use it in GitHub Desktop.
nginx startup script for gcp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
apt-get update | |
apt-get install -y nginx | |
service nginx start | |
sed -i -- 's/nginx/Google Cloud Platform - '"$HOSTNAME"'/' /var/www/html/index.nginx-debian.html | |
# allow for load testing with loader.io replace text with code provided by loader.io | |
echo "loaderio-a78c247b33950ae8d1007c254b91c8be" > /var/www/html/loaderio-a78c247b33950ae8d1007c254b91c8be.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment