Skip to content

Instantly share code, notes, and snippets.

@you21979
Last active December 23, 2015 19:09
Show Gist options
  • Save you21979/6680951 to your computer and use it in GitHub Desktop.
Save you21979/6680951 to your computer and use it in GitHub Desktop.
#!/bin/bash
REPO='
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
'
echo "$REPO" > /etc/yum.repos.d/nginx.repo
yum update -y
@you21979
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment