mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-05 07:16:54 +08:00
hotfix: fix init dir permission deny (#573)
This commit is contained in:
@@ -41,6 +41,7 @@ func CmdDaemon(cmdutil.Factory) *cobra.Command {
|
|||||||
_ = util.CleanupTempKubeConfigFile()
|
_ = util.CleanupTempKubeConfigFile()
|
||||||
} else {
|
} else {
|
||||||
go util.StartupPProf(config.PProfPort)
|
go util.StartupPProf(config.PProfPort)
|
||||||
|
config.Init()
|
||||||
}
|
}
|
||||||
return initLogfile(action.GetDaemonLogPath(opt.IsSudo))
|
return initLogfile(action.GetDaemonLogPath(opt.IsSudo))
|
||||||
},
|
},
|
||||||
|
@@ -29,7 +29,7 @@ const (
|
|||||||
//go:embed config.yaml
|
//go:embed config.yaml
|
||||||
var config []byte
|
var config []byte
|
||||||
|
|
||||||
func init() {
|
func Init() {
|
||||||
err := os.MkdirAll(DaemonPath, 0755)
|
err := os.MkdirAll(DaemonPath, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Reference in New Issue
Block a user