Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Created June 8, 2015 12:40
Show Gist options
  • Save rummelonp/0e8de5ce534c235e75d9 to your computer and use it in GitHub Desktop.
Save rummelonp/0e8de5ce534c235e75d9 to your computer and use it in GitHub Desktop.
if grep -i SELINUX=Enforcing /etc/selinux/config > /dev/null; then
sudo sed -i s/SELINUX=Enforcing/SELINUX=Permissive/i /etc/selinux/config
fi
if [ "$(/usr/sbin/getenforce)" != 'Permissive' ]; then
sudo /usr/sbin/setenforce 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment