fix: better detect not-installed status
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
86386eb959
commit
daccaad28c
1 changed files with 3 additions and 4 deletions
|
@ -18,11 +18,10 @@ 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'
|
||||
INSTALLED="$(php -d memory_limit=-1 occ status |jq -r '.installed')"
|
||||
if [ "$INSTALLED" != "true" ]; then
|
||||
echo "WARNING: Not installed yet. Exiting."
|
||||
# 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
|
||||
echo "WARNING: Nextcloud is not installed yet. Exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue