diff options
author | Unknwon <u@gogs.io> | 2015-12-18 05:49:28 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-18 05:49:28 -0500 |
commit | 037a01c4e4b394cdcd4a2094489cedbcccf34a6b (patch) | |
tree | 9892974a7ab4b3da50753916941cd0db5b859684 /modules | |
parent | 1d95844d5562d372e7168601a39646f67f87a63f (diff) | |
download | gitea-037a01c4e4b394cdcd4a2094489cedbcccf34a6b.tar.gz gitea-037a01c4e4b394cdcd4a2094489cedbcccf34a6b.zip |
fix #2189
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/miniwinsvc.go | 15 | ||||
-rw-r--r-- | modules/setting/setting.go | 5 |
2 files changed, 18 insertions, 2 deletions
diff --git a/modules/setting/miniwinsvc.go b/modules/setting/miniwinsvc.go new file mode 100644 index 0000000000..02e8eb91fc --- /dev/null +++ b/modules/setting/miniwinsvc.go @@ -0,0 +1,15 @@ +// +build miniwinsvc + +// Copyright 2015 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package setting + +import ( + _ "github.com/kardianos/minwinsvc" +) + +func init() { + SupportMiniWinService = true +} diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 532d8595e9..67f2f158b1 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -181,8 +181,9 @@ var ( // Highlight settings are loaded in modules/template/hightlight.go // Other settings - ShowFooterBranding bool - ShowFooterVersion bool + ShowFooterBranding bool + ShowFooterVersion bool + SupportMiniWinService bool // Global setting objects Cfg *ini.File |