update_nextcloud.sh: fix error in determin PHP version.

This commit is contained in:
Christoph 2021-11-18 02:59:04 +01:00
parent d9b31d6f6f
commit f4ea2fe495

View File

@ -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