Skip to content

Instantly share code, notes, and snippets.

@jmervine
Last active December 16, 2015 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmervine/5359133 to your computer and use it in GitHub Desktop.
Save jmervine/5359133 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Run like so:
#
# sudo bash < <( curl https://gist.github.com/jmervine/5359133/raw/ )
#
# Note: this is only for Centos 6 / x86_64
echo "[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/x86_64/
gpgcheck=0
enabled=1
" > /etc/yum.repos.d/nginx.repo
yum install --assumeyes nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment