Просмотр исходного кода

Set php cli version according to fpm_v value.

Raphael Schneeberger 6 лет назад
Родитель
Сommit
ccba03e38c
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      install/hst-install-debian.sh
  2. 1 0
      install/hst-install-ubuntu.sh

+ 1 - 0
install/hst-install-debian.sh

@@ -1205,6 +1205,7 @@ if [ "$phpfpm" = 'yes' ]; then
     update-rc.d php$fpm_v-fpm defaults > /dev/null 2>&1
     systemctl start php$fpm_v-fpm >> $LOG
     check_result $? "php-fpm start failed"
+    update-alternatives --set php /usr/bin/php$fpm_v > /dev/null 2>&1
 fi
 
 

+ 1 - 0
install/hst-install-ubuntu.sh

@@ -1172,6 +1172,7 @@ if [ "$phpfpm" = 'yes' ]; then
     update-rc.d php$fpm_v-fpm defaults > /dev/null 2>&1
     systemctl start php$fpm_v-fpm >> $LOG
     check_result $? "php-fpm start failed"
+    update-alternatives --set php /usr/bin/php$fpm_v > /dev/null 2>&1
 fi