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