Skip to content

Commit ccba03e

Browse files
committed
Set php cli version according to fpm_v value.
1 parent a40e8f5 commit ccba03e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,7 @@ if [ "$phpfpm" = 'yes' ]; then
12051205
update-rc.d php$fpm_v-fpm defaults > /dev/null 2>&1
12061206
systemctl start php$fpm_v-fpm >> $LOG
12071207
check_result $? "php-fpm start failed"
1208+
update-alternatives --set php /usr/bin/php$fpm_v > /dev/null 2>&1
12081209
fi
12091210

12101211

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ if [ "$phpfpm" = 'yes' ]; then
11721172
update-rc.d php$fpm_v-fpm defaults > /dev/null 2>&1
11731173
systemctl start php$fpm_v-fpm >> $LOG
11741174
check_result $? "php-fpm start failed"
1175+
update-alternatives --set php /usr/bin/php$fpm_v > /dev/null 2>&1
11751176
fi
11761177

11771178

0 commit comments

Comments
 (0)