ソースを参照

fix #2189

tags/v0.9.99
Unknwon 8年前
コミット
037a01c4e4
4個のファイルの変更21行の追加3行の削除
  1. 0
    1
      gogs.go
  2. 15
    0
      modules/setting/miniwinsvc.go
  3. 3
    2
      modules/setting/setting.go
  4. 3
    0
      routers/install.go

+ 0
- 1
gogs.go ファイルの表示

@@ -12,7 +12,6 @@ import (
"runtime"

"github.com/codegangsta/cli"
_ "github.com/kardianos/minwinsvc"

"github.com/gogits/gogs/cmd"
"github.com/gogits/gogs/modules/setting"

+ 15
- 0
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
}

+ 3
- 2
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

+ 3
- 0
routers/install.go ファイルの表示

@@ -82,6 +82,9 @@ func GlobalInit() {
if models.EnableTidb {
log.Info("TiDB Supported")
}
if setting.SupportMiniWinService {
log.Info("Builtin Windows Service Supported")
}
checkRunMode()

if setting.StartSSHServer {

読み込み中…
キャンセル
保存