cleanup config.sh
This commit is contained in:
3
conf.sh
3
conf.sh
@@ -12,8 +12,6 @@ if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist
|
|||||||
monitPhpSock=/var/run/php/"$phpFPMService".sock
|
monitPhpSock=/var/run/php/"$phpFPMService".sock
|
||||||
monitPhpPid=/var/run/php/"$phpFPMService".pid
|
monitPhpPid=/var/run/php/"$phpFPMService".pid
|
||||||
monitPhpPro=$phpFPMService
|
monitPhpPro=$phpFPMService
|
||||||
|
|
||||||
/var/run/php/PHPSRV.sock
|
|
||||||
elif [ "$shortdist" = "el8" ]; then
|
elif [ "$shortdist" = "el8" ]; then
|
||||||
monitconf=/etc/monitrc
|
monitconf=/etc/monitrc
|
||||||
rm -rf /etc/monit.d
|
rm -rf /etc/monit.d
|
||||||
@@ -25,7 +23,6 @@ elif [ "$shortdist" = "el8" ]; then
|
|||||||
monitPhpPid=/var/opt/remi/php"${phpver//.}"/run/php-fpm/php-fpm.pid
|
monitPhpPid=/var/opt/remi/php"${phpver//.}"/run/php-fpm/php-fpm.pid
|
||||||
monitPhpPro=php-fpm
|
monitPhpPro=php-fpm
|
||||||
|
|
||||||
|
|
||||||
semanage fcontext -at httpd_sys_rw_content_t "/var/run/monit/.*)?"
|
semanage fcontext -at httpd_sys_rw_content_t "/var/run/monit/.*)?"
|
||||||
restorecon -R -v "/var/run/monit"
|
restorecon -R -v "/var/run/monit"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user