diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:50:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:50:22 +0000 |
commit | 4283a547939c204787a35239ff31758cccf2674f (patch) | |
tree | 961e298be9b22e950ab392515aa18ebb3de9bcd9 /debian/local/irkerhook-debian | |
parent | Adding upstream version 2.18+dfsg. (diff) | |
download | irker-af931c3ee05daaeb6de6691c89915ef0d81626d2.tar.xz irker-af931c3ee05daaeb6de6691c89915ef0d81626d2.zip |
Adding debian version 2.18+dfsg-3.debian/2.18+dfsg-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/local/irkerhook-debian')
-rwxr-xr-x | debian/local/irkerhook-debian | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/local/irkerhook-debian b/debian/local/irkerhook-debian new file mode 100755 index 0000000..1f05304 --- /dev/null +++ b/debian/local/irkerhook-debian @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +_MESSAGE="${@}" + +_PROGRAM="$(basename ${0})" + +for _FILE in "/etc/default/${_PROGRAM}" "/etc/default/${_PROGRAM}.d"/* +do + if [ -e "${_FILE}" ] + then + . "${_FILE}" || true + fi +done + +if [ "${IRK_ENABLED}" != "true" ] +then + exit 0 +fi + +echo "sending IRC notification" + +for IRC_CHANNEL in ${IRC_CHANNELS} +do + irk ${IRC_CHANNEL} "${_MESSAGE}" +done |