Last active
October 8, 2015 13:13
-
-
Save franciscocpg/c628d1af6499f22f5cdd to your computer and use it in GitHub Desktop.
This file contains 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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For remote install use
bash <(curl -s https://gist.githubusercontent.com/franciscocpg/c628d1af6499f22f5cdd/raw/)