Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Last active October 8, 2015 13:13
Show Gist options
  • Save franciscocpg/c628d1af6499f22f5cdd to your computer and use it in GitHub Desktop.
Save franciscocpg/c628d1af6499f22f5cdd to your computer and use it in GitHub Desktop.
#!/bin/bash
CODENAME=$(lsb_release -c)
CODENAME=${CODENAME:10}
# add sign key to nginx
wget http://nginx.org/keys/nginx_signing.key -O /tmp/nginx_signing.key
sudo apt-key add /tmp/nginx_signing.key
# Add sources
sudo add-apt-repository "deb http://nginx.org/packages/ubuntu/ $CODENAME nginx"
# Install nginx
sudo apt-get update
sudo apt-get install nginx -y
nginx -v
@franciscocpg
Copy link
Author

For remote install use

bash <(curl -s https://gist.githubusercontent.com/franciscocpg/c628d1af6499f22f5cdd/raw/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment