Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Forked from duggan/nginx-setup.sh
Created April 29, 2014 20:26
Show Gist options
  • Save Voronenko/3ca8d31ecafe3d822694 to your computer and use it in GitHub Desktop.
Save Voronenko/3ca8d31ecafe3d822694 to your computer and use it in GitHub Desktop.
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