MCPcopy
hub / github.com/cloudflare/cloudflared / installPath

Function installPath

cmd/cloudflared/macos_service.go:79–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func installPath() (string, error) {
80 // User is root, use /Library/LaunchDaemons instead of home directory
81 if isRootUser() {
82 return fmt.Sprintf("/Library/LaunchDaemons/%s.plist", launchdIdentifier), nil
83 }
84 userHomeDir, err := userHomeDir()
85 if err != nil {
86 return "", err
87 }
88 return fmt.Sprintf("%s/Library/LaunchAgents/%s.plist", userHomeDir, launchdIdentifier), nil
89}
90
91func stdoutPath() (string, error) {
92 if isRootUser() {

Callers 2

installLaunchdFunction · 0.85
uninstallLaunchdFunction · 0.85

Calls 2

isRootUserFunction · 0.85
userHomeDirFunction · 0.85

Tested by

no test coverage detected