Created
June 8, 2015 12:40
-
-
Save rummelonp/0e8de5ce534c235e75d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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