address review

Signed-off-by: Simon L <szaimen@e.mail.de>

Co-authored-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-12-12 14:16:03 +01:00 committed by GitHub
parent 6412aa3e0f
commit fb796debd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,12 +257,12 @@ DATADIR_PERMISSION_CONF
if [ "$INSTALL_LATEST_MAJOR" = yes ]; then if [ "$INSTALL_LATEST_MAJOR" = yes ]; then
php /var/www/html/occ config:system:set updatedirectory --value="/nc-updater" php /var/www/html/occ config:system:set updatedirectory --value="/nc-updater"
INSTALL_DAT="$(php /var/www/html/occ config:app:get core installedat)" INSTALLED_AT="$(php /var/www/html/occ config:app:get core installedat)"
if [ -n "$INSTALL_DAT" ]; then if [ -n "${INSTALLED_AT}" ]; then
# Set the installdat to 00 which will allow to skip staging and install the next major directly # Set the installdat to 00 which will allow to skip staging and install the next major directly
# shellcheck disable=SC2001 # shellcheck disable=SC2001
INSTALL_DAT="$(echo "$INSTALL_DAT" | sed "s|[0-9][0-9]$|00|")" INSTALLED_AT="$(echo "${INSTALLED_AT}" | sed "s|[0-9][0-9]$|00|")"
php /var/www/html/occ config:app:set core installedat --value="$INSTALL_DAT" php /var/www/html/occ config:app:set core installedat --value="${INSTALLED_AT}"
fi fi
php /var/www/html/updater/updater.phar --no-interaction --no-backup php /var/www/html/updater/updater.phar --no-interaction --no-backup
if ! php /var/www/html/occ -V || php /var/www/html/occ status | grep maintenance | grep -q 'true'; then if ! php /var/www/html/occ -V || php /var/www/html/occ status | grep maintenance | grep -q 'true'; then