diff --git a/hooks/gx.before-starting.www.sh b/hooks/gx.before-starting.www.sh index 091c9ba..74d9b58 100755 --- a/hooks/gx.before-starting.www.sh +++ b/hooks/gx.before-starting.www.sh @@ -18,9 +18,9 @@ cd "$WORKDIR" || exit 1 echo "GX:BEFORE-STARTING:START ($(pwd))" # find . -maxdepth 1 echo "GX:BEFORE-STARTING:STATUS" -php -d memory_limit=-1 occ status |jq -r '.installed' +php -d memory_limit=-1 occ status # INSTALLED="$(php -d memory_limit=-1 occ status |jq -r '.installed')" -if php -d memory_limit=-1 occ status 2>&1 | grep 'not installed' ; then +if php -d memory_limit=-1 occ status 2>&1 | grep -q 'not installed' ; then echo "WARNING: Nextcloud is not installed yet. Exiting." exit 0 fi