/usr/lib/zypp/notify-message is in libzypp-bin 15.3.0-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #! /bin/bash
######################################################################
test "$1" = "--help" && {
cat <<EOF
Usage: notify-message [-p PACKAGE]
Per default zypp invokes this command to propagate update
notification messages. The optional -p argument should
denote the packages that causes this message to be sent.
The message text itself is read from stdin.
See update.messages.notify option in /etc/zypp.conf
for details.
EOF
exit 0;
}
######################################################################
MAILCMD="/usr/bin/mail"
test -x "$MAILCMD" || {
echo "notify-message: $MAILCMD: command not found" >&2
exit 1;
}
MAILTAG="[zypp-notify-message]"
MAIL_TO="root"
# curently just '-p packageident'
test "$1" = "-p" && {
MAILTAG="$MAILTAG $2"
}
exec $MAILCMD -s "$MAILTAG" $MAIL_TO
|