Skip to content

Instantly share code, notes, and snippets.

@calvin-puram
Forked from nathenharvey/startup.sh
Created September 18, 2022 02:00
Show Gist options
  • Save calvin-puram/52c8cd5ef8ff1cf02a95daf9fa8db14a to your computer and use it in GitHub Desktop.
Save calvin-puram/52c8cd5ef8ff1cf02a95daf9fa8db14a 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