From 423d8a93a73f2e997f4c9ebfd716e7cbc8f4f0a0 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Fri, 22 Mar 2019 06:40:45 +0100 Subject: [PATCH] update php detection --- install | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/install b/install index b7b213c..99b7dee 100644 --- a/install +++ b/install @@ -422,19 +422,23 @@ wo_upgrade_nginx() apt-mark unhold nginx-wo nginx-common nginx-custom apt-get -y -qq autoremove nginx-wo nginx-common nginx-custom --purge fi - # remove previous php-fpm pool configuration - if [ -n "$CHECK_PHP72" ]; then - apt-get remove php7.2-fpm -y -qq --purge - rm -f /etc/php/7.2/fpm/pool.d/* - fi - if [ -n "$CHECK_PHP73" ]; then - apt-get remove php7.3-fpm -y -qq --purge - rm -f /etc/php/7.3/fpm/pool.d/* - fi + + + # install new nginx package if [ -x /usr/local/bin/wo ]; then - /usr/local/bin/wo stack install --nginx --php --php73 + # remove previous php-fpm pool configuration + if [ -n "$CHECK_PHP72" ]; then + apt-get remove php7.2-fpm -y -qq --purge + rm -f /etc/php/7.2/fpm/pool.d/* + fi + /usr/local/bin/wo stack install --nginx --php + if [ -n "$CHECK_PHP73" ]; then + apt-get remove php7.3-fpm -y -qq --purge + rm -f /etc/php/7.3/fpm/pool.d/* + /usr/local/bin/wo stack install --php73 + fi fi # restore sites and configuration