diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-01 23:10:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 23:10:12 +0800 |
commit | 0380ce269fd1877c018eeee0007f2e6a0f84d1ab (patch) | |
tree | 4f61584caaa8ab4e1a46a761a958813a28e3c5c7 /modules | |
parent | cfdc62e7fa4acb562b67eaa790fe2b6049ee8acb (diff) | |
download | gitea-0380ce269fd1877c018eeee0007f2e6a0f84d1ab.tar.gz gitea-0380ce269fd1877c018eeee0007f2e6a0f84d1ab.zip |
add back the default setting values and fix #739 (#1093)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index bdece17ad4..c0756e30e9 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -326,7 +326,9 @@ var ( RunAtStart bool Schedule string }{ - Schedule: "@every 10m", + Enabled: true, + RunAtStart: false, + Schedule: "@every 10m", }, RepoHealthCheck: struct { Enabled bool @@ -335,15 +337,18 @@ var ( Timeout time.Duration Args []string `delim:" "` }{ - Schedule: "@every 24h", - Timeout: 60 * time.Second, - Args: []string{}, + Enabled: true, + RunAtStart: false, + Schedule: "@every 24h", + Timeout: 60 * time.Second, + Args: []string{}, }, CheckRepoStats: struct { Enabled bool RunAtStart bool Schedule string }{ + Enabled: true, RunAtStart: true, Schedule: "@every 24h", }, @@ -353,6 +358,7 @@ var ( Schedule string OlderThan time.Duration }{ + Enabled: true, RunAtStart: true, Schedule: "@every 24h", OlderThan: 24 * time.Hour, |