Skip to content

Commit 90732ed

Browse files
committed
Prevent the removal of custom configuration files.
1 parent e81a475 commit 90732ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-update-web-templates

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cp -rf $HESTIA/install/$type/templates/web $HESTIA/data/templates/
5050
php_versions=$(ls /etc/php/*/fpm -d 2>/dev/null | wc -l)
5151
if [ "$php_versions" -gt 1 ]; then
5252
if [ "$WEB_SYSTEM" = "nginx" ]; then
53-
for tplname in $(ls $HESTIA/data/templates/web/$WEB_SYSTEM/ | grep -v 'default'); do
53+
for tplname in $(ls $HESTIA/data/templates/web/$WEB_SYSTEM/ | grep -E 'PHP-[0-9][0-9]' ); do
5454
rm -fr $HESTIA/data/templates/web/$WEB_SYSTEM/$tplname
5555
done
5656
fi

0 commit comments

Comments
 (0)