From f4ea2fe4954a77d1265b541b33d2479a1df3bcb1 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 18 Nov 2021 02:59:04 +0100 Subject: [PATCH] update_nextcloud.sh: fix error in determin PHP version. --- update_nextcloud.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_nextcloud.sh b/update_nextcloud.sh index 63d9b60..ef7cb3d 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -508,7 +508,7 @@ if [[ "$PHP_ENGINE" = "FPM" ]] ; then fi fi - if [[ -z "$VHOST_CONFIG_FILE" ]] ; then + if [[ -n "$VHOST_CONFIG_FILE" ]] ; then PHP_VERSION="$(grep -o -E "^[^#]*php-?[[:digit:]]{1,2}\.[[:digit:]]{1}-fpm" $VHOST_CONFIG_FILE \ | grep -o -E "[[:digit:]]{1,2}\.[[:digit:]]{1}")" fi