提交 1560bcce 编写于 作者: m0_58228130's avatar m0_58228130

fix issues

上级 4d4be853
......@@ -9,9 +9,9 @@ var (
LanguageEn = "en"
Language = LanguageZh
Verbose = true
IsRelease bool
ExeDir string
Verbose = true
IsRelease bool
//ExeDir string
WorkDir string
ExecLogDir string
LogDir string
......
......@@ -23,9 +23,9 @@ import (
)
func CheckConfigPermission() {
err := fileUtils.MkDirIfNeeded(commConsts.ExeDir + "conf")
err := fileUtils.MkDirIfNeeded(commConsts.WorkDir + "conf")
if err != nil {
msg := i118Utils.Sprintf("perm_deny", commConsts.ExeDir)
msg := i118Utils.Sprintf("perm_deny", commConsts.WorkDir)
logUtils.ExecConsolef(color.FgRed, msg)
os.Exit(0)
}
......@@ -33,6 +33,8 @@ func CheckConfigPermission() {
func InitConfig() {
commConsts.IsRelease = commonUtils.IsRelease()
CheckConfigPermission()
commConsts.WorkDir = fileUtils.GetWorkDir()
commConsts.ConfigPath = commConsts.WorkDir + commConsts.ConfigFile
serverConfig.InitExecLog(commConsts.WorkDir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册