Compare commits

...

2 commits

Author SHA1 Message Date
5aacd69917 Merge pull request 'fix: run status before trying to install' (#12) from develop into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #12
2024-08-06 14:25:18 +00:00
3877f83ecc fix: run status before trying to install
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build was killed
2024-08-06 14:27:34 +02:00
2 changed files with 8 additions and 1 deletions

View file

@ -23,7 +23,7 @@ FROM nextcloud:29.0.3-apache
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
clamdscan nano ghostscript \
clamdscan nano ghostscript jq \
&& apt-get clean
#

View file

@ -17,6 +17,13 @@ cd "$WORKDIR" || exit 1
echo "GX:BEFORE-STARTING:START ($(pwd))"
# find . -maxdepth 1
echo "GX:BEFORE-STARTING:STATUS"
INSTALLED="$(php -d memory_limit=-1 occ status |jq -r '.installed')"
if [ "$INSTALLED" != "true" ]; then
echo "WARNING: Not installed yet. Exiting."
exit 0
fi
echo "GX:BEFORE-STARTING:UPGRADE"
php -d memory_limit=-1 occ upgrade
echo "GX:BEFORE-STARTING:DB"