Skip to content

Instantly share code, notes, and snippets.

@nathenharvey
Created June 4, 2019 06:14
Show Gist options
  • Save nathenharvey/c2bebc9a192fd208fc720f823545ee6f to your computer and use it in GitHub Desktop.
Save nathenharvey/c2bebc9a192fd208fc720f823545ee6f to your computer and use it in GitHub Desktop.
nginx startup script
#! /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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment