Created
May 11, 2016 11:15
-
-
Save jesperronn/46bde5895f354075587ab20147fb6137 to your computer and use it in GitHub Desktop.
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/bash | |
FILE=/etc/yum.repos.d/nginx.repo | |
sudo touch $FILE | |
sudo chown root:root $FILE | |
echo " | |
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/ | |
gpgcheck=0 | |
enabled=1 | |
" | sudo tee $FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment