Skip to content

Commit

Permalink
nextcloud: add config maintenance_window_start
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 committed May 17, 2024
1 parent 9be79e5 commit 4ab1298
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion tests/unit/spec_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec_helper_precheck()
# Available variables: VERSION, SHELL_TYPE, SHELL_VERSION
: minimum_version "0.28.1"
setenv SNAP="$SHELLSPEC_PROJECT_ROOT/src/common"
setenv NEXTCLOUD_SCRIPT_INCLUDE_PATH="src/common/utilities:src/apache/utilities:src/https/utilities:src/php/utilities:src/hooks/utilities"
setenv NEXTCLOUD_SCRIPT_INCLUDE_PATH="src/common/utilities:src/apache/utilities:src/https/utilities:src/php/utilities:src/hooks/utilities:src/nextcloud/utilities"
}

# This callback function will be invoked after a specfile has been loaded.
Expand Down

0 comments on commit 4ab1298

Please sign in to comment.