You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
344 B

  1. # -*- mode: shell-script -*-
  2. NTFY_CONFIGFILE="$SERVICE_CONFIGSTORE/etc/ntfy/server.yml"
  3. ntfy:init() {
  4. service_def=$(get_compose_service_def "$SERVICE_NAME")
  5. mkdir -p "${NTFY_CONFIGFILE%/*}" &&
  6. e "$service_def" | yq e '.options' - > "$NTFY_CONFIGFILE"
  7. }
  8. ntfy:config() {
  9. local cmd="$1"
  10. yq e "$1" -i "$NTFY_CONFIGFILE"
  11. }