mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
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:
parent
6412aa3e0f
commit
fb796debd6
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue