subscribe_unix.go 476 B

123456789101112131415161718
  1. //go:build linux || dragonfly || freebsd || netbsd || openbsd
  2. package cmd
  3. const (
  4. scriptExt = "sh"
  5. scriptHeader = "#!/bin/sh\n"
  6. clientCommandDescriptionSuffix = `The default config file for all client commands is /etc/ntfy/client.yml (if root user),
  7. or ~/.config/ntfy/client.yml for all other users.`
  8. )
  9. var (
  10. scriptLauncher = []string{"sh", "-c"}
  11. )
  12. func defaultClientConfigFile() string {
  13. return defaultClientConfigFileUnix()
  14. }