Repository navigation
Multiple notify-hook with different notify-level or notify-mode #7378
|
Hi Everyone, I found, that there can me multiple notify-hook used: acme.sh --set-notify --notify-hook mailgun --notify-hook mail But is it possible to have different levels or modes per notify-hook ? I would like to use pushover as a standard notify with level 2 (certify renewed or error) and healthcheck with level 3 as suggested. Such configuration would give me info about new cert I can use (pushover) and another info, where my script or VM with acme.sh stop working (healthcheck - external info that there was no action performed in specified interval). It would be great to possible use similar to this one: acme.sh --set-notify --notify-hook pushover --notify-level 2 --notify-mode 0 --notify-hook healthcheck --notify-level 3 --notify-mode 0 Regards, |
Replies: 1 comment 3 replies
|
No, level and mode are global. But hooks get the status as Run: pushover2_send() {
[ "$3" = "2" ] && return 0
. "$LE_WORKING_DIR/notify/pushover.sh"
pushover_send "$@"
}Then run: acme.sh --set-notify --notify-hook pushover2 --notify-hook healthchecks --notify-level 3 |
No, level and mode are global. But hooks get the status as
$3(2 = skipped). Use level 3 and a wrapper,notify/pushover2.sh:Run:
Then run: