summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-12-20 17:39:30 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-01-28 21:30:57 +0000
commitda665e1f9e7c9fb45e2cbb94e783164b1953150f (patch)
treee712a287cbb25b8c3fa193240bf32d1d14071035 /bin
parentMoving logfile notification from container program to hook. (diff)
downloadcompute-tools-da665e1f9e7c9fb45e2cbb94e783164b1953150f.tar.xz
compute-tools-da665e1f9e7c9fb45e2cbb94e783164b1953150f.zip
Moving irc notification from container program to hook.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/container28
1 files changed, 0 insertions, 28 deletions
diff --git a/bin/container b/bin/container
index 0a6b7e3..37c87a3 100755
--- a/bin/container
+++ b/bin/container
@@ -57,34 +57,6 @@ do
fi
done
-# Notification
-if echo "${OPTIONS}" | grep -qs "\--no-notification"
-then
- OPTIONS="$(echo "${OPTIONS}" | sed -e 's|--no-notification||')"
-else
- case "${COMMAND}" in
- create|remove|rm|restart|start|stop)
- USER="${SUDO_USER:-${USER}}"
- DATE="$(date +%Y-%m-%d\ %H:%M:%S)"
- HOST="$(hostname -f)"
-
- # irc
- if [ -e /usr/bin/irk ] && [ -e "/etc/default/${SOFTWARE}" ]
- then
- . /etc/default/${SOFTWARE}
-
- if [ -n "${IRK_TARGETS}" ]
- then
- for TARGET in ${IRK_TARGETS}
- do
- irk ${TARGET} "\x0300${USER}\x03@\x0312${HOST}:\x03 \x0303${PROGRAM}\x03 \x0307${COMMAND}\x03 ${OPTIONS}"
- done
- fi
- fi
- ;;
- esac
-fi
-
# Run
exec "/usr/lib/${SOFTWARE}/${PROGRAM}/${COMMAND}" "${OPTIONS}"