cleanup config.sh

This commit is contained in:
2021-01-08 15:29:42 +01:00
parent 6972396332
commit ff9b4229c5

View File

@@ -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,9 +23,8 @@ 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
systemctl stop monit systemctl stop monit