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.
 
 

14 lines
344 B

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