Skip to content

Instantly share code, notes, and snippets.

@joshuakfarrar
Last active December 12, 2015 10:09
Show Gist options
  • Save joshuakfarrar/4757373 to your computer and use it in GitHub Desktop.
Save joshuakfarrar/4757373 to your computer and use it in GitHub Desktop.
[zipp@kerrigan ~]$ curl -u 'zipp' -L -o - https://raw.github.com/zipp/private-repo/master/somescript.sh | sudo bash
#!/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