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