Skip to content

Commit dc396f2

Browse files
committed
cleanup proxy cache pool
1 parent 4a43952 commit dc396f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/v-delete-web-domain

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
8585
conf="$HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf"
8686
del_web_config
8787
fi
88+
89+
# Deleting domain from proxy cache pool
90+
pool="/etc/$PROXY_SYSTEM/conf.d/01_caching_pool.conf"
91+
if [ -e "$pool" ]; then
92+
sed -i "/=$domain:/d" $pool
93+
fi
8894
fi
8995

9096
# Checking stats

0 commit comments

Comments
 (0)