Check new version only for releases (#8107)
This commit is contained in:
parent
f08dea2c47
commit
543d5b781a
3 changed files with 12 additions and 6 deletions
|
|
@ -259,9 +259,11 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
site.DumpConfig()
|
||||
site.Prepare(valueChan, pushChan)
|
||||
|
||||
// show and check version
|
||||
valueChan <- util.Param{Key: "version", Val: server.FormattedVersion()}
|
||||
go updater.Run(log, httpd, valueChan)
|
||||
// show and check version, reduce api load during development
|
||||
if server.Version != server.DevVersion {
|
||||
valueChan <- util.Param{Key: "version", Val: server.FormattedVersion()}
|
||||
go updater.Run(log, httpd, valueChan)
|
||||
}
|
||||
|
||||
// expose sponsor to UI
|
||||
if sponsor.Subject != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue