File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5151
5252conf=' /etc/nginx/conf.d/fastcgi_cache_pool.conf'
5353if [ -f " $conf " ]; then
54- sed -i " /fastcgi_cache $domain ; /d" $conf
54+ sed -i " / keys_zone= $domain /d" $conf
5555 if [ ! -s " $conf " ]; then
5656 rm -rf $conf
5757 fi
Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ if [ "$SSL" = 'yes' ]; then
8181 rm -f $USER_DATA /ssl/$domain .*
8282fi
8383
84+ if [ " $FASTCGI_CACHE " = " yes" ]; then
85+ # make sure no trails left behind
86+ $BIN /v-delete-fastcgi-cache $user $domain
87+ fi
88+
8489# Deleting domain from web.conf
8590sed -i " /DOMAIN='$domain '/ d" $USER_DATA /web.conf
8691
@@ -111,11 +116,6 @@ rm -f /var/log/$WEB_SYSTEM/domains/$domain.error*
111116rm -rf $HOMEDIR /$user /web/$domain
112117rm -rf $HOMEDIR /$user /conf/web/$domain
113118
114- if [ " $FASTCGI_CACHE " = " yes" ]; then
115- # make sure no trails left behind
116- $BIN /v-delete-fastcgi-cache $user $domain
117- fi
118-
119119# ----------------------------------------------------------#
120120# Hestia #
121121# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments