Skip to content

Commit

Permalink
nextcloud: add config maintenance_window_start
Browse files Browse the repository at this point in the history
Fix #2658
  • Loading branch information
Pilzinsel64 committed May 25, 2024
1 parent 9be79e5 commit 83b94dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/nextcloud/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@
'log_type' => 'file',
'logfile' => $snap_data_current.'/logs/nextcloud.log',
'logfilemode' => 0640,
'maintenance_window_start' => 1,
);
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

0 comments on commit 83b94dd

Please sign in to comment.