Created
September 23, 2015 14:46
-
-
Save instaBOT/7cd533ebc6d468c50591 to your computer and use it in GitHub Desktop.
install latest stable Nginx from external PPA repo. It also installs some additional useful and popular packages (ssl-cert, openssl-blacklist, openssl-blacklist-extra)
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
#!/usr/bin/env bash | |
cd | |
set -e | |
############################################################################### | |
# APT repos | |
############################################################################### | |
sudo add-apt-repository --yes ppa:nginx/stable | |
sudo apt-get update | |
sudo apt-get upgrade --yes | |
############################################################################### | |
# install packages | |
############################################################################### | |
# optional but very useful | |
sudo apt-get install --yes \ | |
ssl-cert \ | |
openssl-blacklist \ | |
openssl-blacklist-extra \ | |
# required | |
sudo apt-get install --yes nginx | |
# stop services just installed (they are not configured yet) | |
sudo service nginx stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment