From 10fca3053df40b2e750f8aedd158e8a9c82fea62 Mon Sep 17 00:00:00 2001 From: dpeca Date: Sun, 19 May 2019 02:33:55 +0200 Subject: [PATCH] Deleting FPM pool conf when deleting domain --- func/domain.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/func/domain.sh b/func/domain.sh index cc66aecb..7f5f3814 100644 --- a/func/domain.sh +++ b/func/domain.sh @@ -271,6 +271,32 @@ replace_web_config() { # Delete web configuration del_web_config() { + + fpmconf="/etc/php5/fpm/pool.d/$domain.conf" + if [ -f "$fpmconf" ]; then + rm $fpmconf + fi + fpmconf="/etc/php/5.6/fpm/pool.d/$domain.conf" + if [ -f "$fpmconf" ]; then + rm $fpmconf + fi + fpmconf="/etc/php/7.0/fpm/pool.d/$domain.conf" + if [ -f "$fpmconf" ]; then + rm $fpmconf + fi + fpmconf="/etc/php/7.1/fpm/pool.d/$domain.conf" + if [ -f "$fpmconf" ]; then + rm $fpmconf + fi + fpmconf="/etc/php/7.2/fpm/pool.d/$domain.conf" + if [ -f "$fpmconf" ]; then + rm $fpmconf + fi + fpmconf="/etc/php/7.3/fpm/pool.d/$domain.conf" + if [ -f "$fpmconf" ]; then + rm $fpmconf + fi + conf="$HOMEDIR/$user/conf/web/$domain.$1.conf" if [[ "$2" =~ stpl$ ]]; then conf="$HOMEDIR/$user/conf/web/$domain.$1.ssl.conf"