/usr/bin/umegaya-ddc-ping is in umegaya 1.0.
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 | #!/bin/sh -e
# Umegaya's debian-devel-changes pinger
#
# Piped emails from http://lists.debian.org/debian-devel-changes to this program
# trigger a ping for the corresponding package in an Umegaya instance.
URL=$(awk '/^ping_url:/ {print $2 ; nextfile}' /etc/umegaya/umegaya.conf)
PACKAGE=$(grep ^Subject -m1 | awk '/Subject: Accepted/ {print $3}')
MESSAGES=$(awk '/^messages:/ {print $2 ; nextfile}' /etc/umegaya/umegaya.conf)
if [ "$PACKAGE" != '' ] ; then
curl --silent ${URL-http://localhost/umegaya}/$PACKAGE/ping > /dev/null
if [ "$MESSAGES" = 'syslog' ] ; then
logger -i umegaya-ddc-ping: pinged $PACKAGE at $URL
fi
exit 0
fi
if [ "$MESSAGES" = 'syslog' ] ; then
logger -i umegaya-ddc-ping: failed to find package name in standard input
else
exit 1
fi
exit 0
|