subscribe_unix.go 525 B

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