Skip to content

Commit 59fe4d7

Browse files
committed
Multiphp: cleanup residual configs from /etc/php/ after uninstalling a php version
1 parent fa57c70 commit 59fe4d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-delete-web-php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ if [ -f "$php_fpm" ]; then
7878
echo "apt-get purge $mph"
7979
fi
8080

81+
# Cleanup php folder
82+
[[ -d /etc/php/$version ]] && rm -rf "/etc/php/$version"
83+
8184

8285
#----------------------------------------------------------#
8386
# Hestia #

0 commit comments

Comments
 (0)