KanonConductor

changeset 16:f52703499749

persistent disable selinux.
author okamototk
date Fri, 18 Mar 2011 15:53:25 +0900
parents 13778ae247d9
children 7bde3e4003ed
files kanon-setup
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/kanon-setup	Thu Mar 10 01:28:47 2011 +0900
     1.2 +++ b/kanon-setup	Fri Mar 18 15:53:25 2011 +0900
     1.3 @@ -139,6 +139,12 @@
     1.4          cp resource/httpd.conf /etc/httpd/conf.d/kanon.conf
     1.5      fi
     1.6      echo 0 > /selinux/enforce
     1.7 +    CHK=`grep SELINUX=enforcing /etc/selinux/config` 
     1.8 +    if [ ! "$CHK" = '' ]   
     1.9 +    then
    1.10 +        cat /etc/selinux/config |sed 's/SELINUX=enforcing/SELINUX=disabled/' > /tmp/selinux_config
    1.11 +        mv /tmp/selinux_config /etc/selinux/config 
    1.12 +    fi
    1.13      echo "SELinuxが無効化されました"
    1.14      service httpd stop
    1.15      service httpd start