From b4db0a48ca169d2694ceac3735bbd7a6dcca82a2 Mon Sep 17 00:00:00 2001 From: Jeff Volkenant Date: Fri, 23 Aug 2019 14:33:20 -0700 Subject: [PATCH] Fix if regex order --- setup/nextcloud.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index 72b69866..f09b0bc7 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -103,7 +103,7 @@ CURRENT_NEXTCLOUD_VER=$(php -r "include(\"$STORAGE_ROOT/owncloud/config.php\"); # If the Nextcloud directory is missing (never been installed before, or the nextcloud version to be installed is different # from the version currently installed, do the install/upgrade -if [ ! -d /usr/local/lib/owncloud/ ] || [[ ! $nextcloud_ver =~ ^${CURRENT_NEXTCLOUD_VER} ]]; then +if [ ! -d /usr/local/lib/owncloud/ ] || [[ ! ${CURRENT_NEXTCLOUD_VER} =~ ^$nextcloud_ver ]]; then # Stop php-fpm if running. If theyre not running (which happens on a previously failed install), dont bail. service php7.2-fpm stop &> /dev/null || /bin/true