Skip to content

Commit 58a5698

Browse files
committed
Change position nginx configuration file removal.
1 parent 68be2c6 commit 58a5698

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,14 +1008,14 @@ if [ "$nginx" = 'yes' ]; then
10081008
echo > /etc/nginx/conf.d/hestia.conf
10091009
mkdir -p /var/log/nginx/domains
10101010
if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ]; then
1011+
rm -fr $HESTIA/data/templates/web/nginx/*
10111012
for v in "${multiphp_v[@]}"; do
10121013
update-rc.d php$v-fpm defaults > /dev/null 2>&1
10131014
cp -r /etc/php/$v/ /root/hst_install_backups/php$v/
10141015
rm -f /etc/php/$v/fpm/pool.d/*
10151016
v_tpl=$(echo "$v" | sed -e 's/[.]//')
10161017
cp -f $hestiacp/multiphp/nginx/PHP-$v_tpl.* $HESTIA/data/templates/web/nginx/
10171018
done
1018-
rm -fr $HESTIA/data/templates/web/nginx/*
10191019
cp -f $hestiacp/php-fpm/www.conf /etc/php/$fpm_v/fpm/pool.d/
10201020
chmod a+x $HESTIA/data/templates/web/nginx/*.sh
10211021
fpm_tpl=$(echo "$fpm_v" | sed -e 's/[.]//')

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,14 +986,14 @@ if [ "$nginx" = 'yes' ]; then
986986
echo > /etc/nginx/conf.d/hestia.conf
987987
mkdir -p /var/log/nginx/domains
988988
if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ]; then
989+
rm -fr $HESTIA/data/templates/web/nginx/*
989990
for v in "${multiphp_v[@]}"; do
990991
update-rc.d php$v-fpm defaults > /dev/null 2>&1
991992
cp -r /etc/php/$v/ /root/hst_install_backups/php$v/
992993
rm -f /etc/php/$v/fpm/pool.d/*
993994
v_tpl=$(echo "$v" | sed -e 's/[.]//')
994995
cp -f $hestiacp/multiphp/nginx/PHP-$v_tpl.* $HESTIA/data/templates/web/nginx/
995996
done
996-
rm -fr $HESTIA/data/templates/web/nginx/*
997997
cp -f $hestiacp/php-fpm/www.conf /etc/php/$fpm_v/fpm/pool.d/
998998
chmod a+x $HESTIA/data/templates/web/nginx/*.sh
999999
fpm_tpl=$(echo "$fpm_v" | sed -e 's/[.]//')

0 commit comments

Comments
 (0)