Skip to content

Commit f874e4f

Browse files
committed
Update PHP-xx.tpl on update
1 parent f7d2e10 commit f874e4f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

func/upgrade.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,14 @@ upgrade_phpmyadmin() {
214214
fi
215215
}
216216

217+
update_multiphp_conf() {
218+
#Update multiphp con
219+
for version in $(v-list-sys-php plain); do
220+
cp -f $HESTIA_INSTALL_DIR/php-fpm/multiphp.tpl \
221+
$HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl;
222+
done
223+
}
224+
217225
upgrade_get_version() {
218226
# Retrieve new version number for Hestia Control Panel from .deb package
219227
new_version=$(dpkg -l | awk '$2=="hestia" { print $3 }')

src/deb/hestia/postinst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ upgrade_welcome_message
3434
# Execute version-specific upgrade scripts
3535
upgrade_start_routine
3636

37+
# Update configuration Multi PHP
38+
update_multiphp_conf
39+
3740
# Upgrade phpMyAdmin if applicable
3841
upgrade_phpmyadmin
3942

0 commit comments

Comments
 (0)