forked from nextcloud-snap/nextcloud-snap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nextcloud: add config
maintenance_window_start
- Loading branch information
1 parent
9be79e5
commit 4ab1298
Showing
3 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/nextcloud/fixes/existing-install/7_add_maintenance_window.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh -e | ||
|
||
# Check if config 'maintenance_window_start' doesn't exist or has no value set | ||
if ! occ -n config:system:get maintenance_window_start; then | ||
# Set default 'maintenance_window_start' to 1 a.m. (UTC) | ||
occ -n config:system:set maintenance_window_start --value=1 --type=integer | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters