Disable unnecessary mirroring elements

This mod fixes disabling unnecessary mirroring elements.

Related: https://github.com/go-gitea/gitea/pull/16957
Related: https://github.com/go-gitea/gitea/pull/13084
Author-Change-Id: IB#1105104
This commit is contained in:
Pawel Boguslawski 2022-02-01 15:54:01 +01:00
parent b7c6457648
commit 02b4505150
7 changed files with 11 additions and 12 deletions

View file

@ -141,7 +141,9 @@ func registerCleanupHookTaskTable() {
}
func initBasicTasks() {
registerUpdateMirrorTask()
if setting.Mirror.Enabled {
registerUpdateMirrorTask()
}
registerRepoHealthCheck()
registerCheckRepoStats()
registerArchiveCleanup()