Files
kubevpn/pkg/config/const.go
fengcaiwen a1484556b9 feat: wip
2023-10-02 13:44:23 +08:00

30 lines
458 B
Go

package config
import "os"
const (
HOME = ".kubevpn"
Daemon = "daemon"
SockPath = "daemon.sock"
SudoSockPath = "sudo_daemon.sock"
PidPath = "daemon.pid"
SudoPidPath = "sudo_daemon.pid"
LogFile = "daemon.log"
KubeVPNRestorePatchKey = "kubevpn-probe-restore-patch"
)
func init() {
err := os.MkdirAll(DaemonPath, os.ModePerm)
if err != nil {
panic(err)
}
err = os.Chmod(DaemonPath, os.ModePerm)
if err != nil {
panic(err)
}
}