Last active
December 12, 2015 10:09
-
-
Save joshuakfarrar/4757373 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
[zipp@kerrigan ~]$ curl -u 'zipp' -L -o - https://raw.github.com/zipp/private-repo/master/somescript.sh | sudo bash |
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 | |
if [[ $EUID -ne 0 ]] ; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# Disables selinux until and on reboot in /etc/selinux/config | |
setenforce 0 ; sed -i 's/^SELINUX=\(enforcing\|permissive\)$/SELINUX=disabled/g' /etc/selinux/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment