Skip to content

Commit

Permalink
Merge pull request #4324 from nextcloud/enh/noid/set-maintenance-window
Browse files Browse the repository at this point in the history
nextcloud - set maintenance_window_start
  • Loading branch information
szaimen authored Mar 4, 2024
2 parents edb70a1 + 75eb2fd commit 6bc2d1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Containers/nextcloud/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,10 @@ php /var/www/html/occ config:system:set updatedirectory --value="/nc-updater"
if [ -n "$SERVERINFO_TOKEN" ] && [ -z "$(php /var/www/html/occ config:app:get serverinfo token)" ]; then
php /var/www/html/occ config:app:set serverinfo token --value="$SERVERINFO_TOKEN"
fi
# Set maintenance window so that no warning is shown in the admin overview
if [ -z "$(php /var/www/html/occ config:system:get maintenance_window_start)" ]; then
php /var/www/html/occ config:system:set maintenance_window_start --type=int --value=100
fi

# Apply network settings
echo "Applying network settings..."
Expand Down

0 comments on commit 6bc2d1d

Please sign in to comment.