-
-
Save Voronenko/3ca8d31ecafe3d822694 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
apt-get install -y curl | |
# Install nginx | |
if [ "xx" = "x$(grep 'nginx' /etc/apt/sources.list )x" ] ; then | |
echo 'Installing nginx...' | |
echo ' | |
# Repositories for up to date nginx packages | |
deb http://nginx.org/packages/mainline/ubuntu/ precise nginx | |
deb-src http://nginx.org/packages/mainline/ubuntu/ precise nginx' >> /etc/apt/sources.list | |
curl -s http://nginx.org/keys/nginx_signing.key | apt-key add - | |
apt-get update > /dev/null | |
apt-get install -y nginx | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment