Skip to content

Commit eb98118

Browse files
committed
Add symlink for default nginx (php) template.
1 parent b76abee commit eb98118

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,11 @@ if [ "$nginx" = 'yes' ]; then
896896
rm -f /etc/php/7.1/fpm/pool.d/*
897897
cp -r /etc/php/7.2/ /root/hst_install_backups/php7.2/
898898
rm -f /etc/php/7.2/fpm/pool.d/*
899+
rm -fr $HESTIA/data/templates/web/nginx/*
899900
cp -f $hestiacp/multiphp/nginx/* $HESTIA/data/templates/web/nginx/
901+
ln -s $HESTIA/data/templates/web/nginx/PHP-72.sh $HESTIA/data/templates/web/nginx/default.sh
902+
ln -s $HESTIA/data/templates/web/nginx/PHP-72.tpl $HESTIA/data/templates/web/nginx/default.tpl
903+
ln -s $HESTIA/data/templates/web/nginx/PHP-72.stpl $HESTIA/data/templates/web/nginx/default.stpl
900904
chmod a+x $HESTIA/data/templates/web/nginx/*.sh
901905
fi
902906
update-rc.d nginx defaults

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,11 @@ if [ "$nginx" = 'yes' ]; then
891891
rm -f /etc/php/7.1/fpm/pool.d/*
892892
cp -r /etc/php/7.2/ /root/hst_install_backups/php7.2/
893893
rm -f /etc/php/7.2/fpm/pool.d/*
894+
rm -fr $HESTIA/data/templates/web/nginx/*
894895
cp -f $hestiacp/multiphp/nginx/* $HESTIA/data/templates/web/nginx/
896+
ln -s $HESTIA/data/templates/web/nginx/PHP-72.sh $HESTIA/data/templates/web/nginx/default.sh
897+
ln -s $HESTIA/data/templates/web/nginx/PHP-72.tpl $HESTIA/data/templates/web/nginx/default.tpl
898+
ln -s $HESTIA/data/templates/web/nginx/PHP-72.stpl $HESTIA/data/templates/web/nginx/default.stpl
895899
chmod a+x $HESTIA/data/templates/web/nginx/*.sh
896900
fi
897901
update-rc.d nginx defaults

0 commit comments

Comments
 (0)