update_nextcloud.sh: fix error in determin PHP version.
This commit is contained in:
parent
d9b31d6f6f
commit
f4ea2fe495
@ -508,7 +508,7 @@ if [[ "$PHP_ENGINE" = "FPM" ]] ; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
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 \
|
PHP_VERSION="$(grep -o -E "^[^#]*php-?[[:digit:]]{1,2}\.[[:digit:]]{1}-fpm" $VHOST_CONFIG_FILE \
|
||||||
| grep -o -E "[[:digit:]]{1,2}\.[[:digit:]]{1}")"
|
| grep -o -E "[[:digit:]]{1,2}\.[[:digit:]]{1}")"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user