From ff9b4229c573ca8c271b550d46c5e88b015a6d5a Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 8 Jan 2021 15:29:42 +0100 Subject: [PATCH] cleanup config.sh --- conf.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/conf.sh b/conf.sh index 662a5cd..9543654 100644 --- a/conf.sh +++ b/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