From 4283a547939c204787a35239ff31758cccf2674f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 02:50:22 +0200 Subject: Adding debian version 2.18+dfsg-3. Signed-off-by: Daniel Baumann --- debian/local/irkerhook-debian | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 debian/local/irkerhook-debian (limited to 'debian/local/irkerhook-debian') 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 -- cgit v1.2.3