Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.