Install mainline version of nginx on wheezy.
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/sh | |
# Remove nginx that is already installed. | |
apt-get purge nginx | |
apt-get autoremove | |
(cat <<-SRC | |
# nginx mainline repository | |
deb http://nginx.org/packages/mainline/debian/ wheezy nginx | |
deb-src http://nginx.org/packages/mainline/debian/ wheezy nginx | |
SRC | |
) > /etc/apt/sources.list.d/nginx-mainline.list | |
wget http://nginx.org/keys/nginx_signing.key | |
apt-key add nginx_signing.key | |
apt-get update | |
apt-get install nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment