Skip to content

Instantly share code, notes, and snippets.

@leowinterde
Last active March 15, 2017 16:12
Show Gist options
  • Save leowinterde/a9480ea6d93c3abbe3bf8d5eb01aee0e to your computer and use it in GitHub Desktop.
Save leowinterde/a9480ea6d93c3abbe3bf8d5eb01aee0e to your computer and use it in GitHub Desktop.
#! /bin/bash
echo "--- Updating & cleaning system ---"
sudo apt-get update && sudo apt-get upgrade -y
echo "--- Installing base packages ---"
sudo apt-get install -y sudo apt-transport-https
echo "--- Installing nginx stuff ---"
curl -L https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
sh -c "echo -e deb "http://nginx.org/packages/debian/ jessie nginx\ndeb-src http://nginx.org/packages/debian/ jessie nginx" > /etc/apt/sources.list.d/nginx.list"
sudo apt-get install -y nginx
echo "--- Restarting nginx ---"
sudo service nginx restart
echo "--- All set to go! Enjoy nginx. ---"
exit 0
#! /bin/bash
echo "--- Updating & cleaning system ---"
sudo apt-get update && sudo apt-get upgrade -y
echo "--- Installing base packages ---"
sudo apt-get install -y sudo apt-transport-https
echo "--- Installing nginx stuff ---"
curl -L https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
sh -c "echo -e deb "http://nginx.org/packages/debian/ wheezy nginx\ndeb-src http://nginx.org/packages/debian/ wheezy nginx" > /etc/apt/sources.list.d/nginx.list"
sudo apt-get install -y nginx
echo "--- Restarting nginx ---"
sudo service nginx restart
echo "--- All set to go! Enjoy nginx. ---"
exit 0
SimpleInstall Nginx (https://nginx.org/) on Debian form nginx.org mirror, Pre-Built Packages for Stable version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment