mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Deleting FPM pool conf when deleting domain
This commit is contained in:
parent
6a6cfe969a
commit
10fca3053d
1 changed files with 26 additions and 0 deletions
|
@ -271,6 +271,32 @@ replace_web_config() {
|
||||||
|
|
||||||
# Delete web configuration
|
# Delete web configuration
|
||||||
del_web_config() {
|
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"
|
conf="$HOMEDIR/$user/conf/web/$domain.$1.conf"
|
||||||
if [[ "$2" =~ stpl$ ]]; then
|
if [[ "$2" =~ stpl$ ]]; then
|
||||||
conf="$HOMEDIR/$user/conf/web/$domain.$1.ssl.conf"
|
conf="$HOMEDIR/$user/conf/web/$domain.$1.ssl.conf"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue