mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-09-26 19:31:17 +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()
|
||||
} else {
|
||||
go util.StartupPProf(config.PProfPort)
|
||||
config.Init()
|
||||
}
|
||||
return initLogfile(action.GetDaemonLogPath(opt.IsSudo))
|
||||
},
|
||||
|
@@ -29,7 +29,7 @@ const (
|
||||
//go:embed config.yaml
|
||||
var config []byte
|
||||
|
||||
func init() {
|
||||
func Init() {
|
||||
err := os.MkdirAll(DaemonPath, 0755)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user