diff options
| author | 2026-07-01 15:41:46 -0600 | |
|---|---|---|
| committer | 2026-07-01 15:42:32 -0600 | |
| commit | 93b724af7be9056a28ac7032049bb75f800950e6 (patch) | |
| tree | d1685973ca8152c16b0ce2dbde9b9341282c2c96 /sh.conf.example | |
| parent | post-update - set umask to 0022 (diff) | |
Diffstat (limited to 'sh.conf.example')
| -rw-r--r-- | sh.conf.example | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sh.conf.example b/sh.conf.example index e830344..4b14fc5 100644 --- a/sh.conf.example +++ b/sh.conf.example @@ -1,2 +1,11 @@ -to_host="${to_host:-127.0.0.1}" -to_port="${to_port:-1337}" +to_host="127.0.0.1" +to_port="1234" + +notify(){ + if [ -n "$addlNotify" ]; then + tee >(nc -q 0 "${addlNotify%:*}" "${addlNotify##*:}") | nc -q 0 "${to_host}" "${to_port}" >/dev/null + else + nc -q 0 "${to_host}" "${to_port}" >/dev/null + fi +} + |
