| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
case "$1" in |
| 6 |
configure) |
| 7 |
adduser --quiet --system --home /nonexistent --no-create-home --group \ |
| 8 |
--gecos "Prometheus Alertmanager IRC relay" \ |
| 9 |
alertmanager-irc-relay || true |
| 10 |
|
| 11 |
if ! dpkg-statoverride --list /etc/alertmanager-irc-relay.yml >/dev/null ; |
| 12 |
then |
| 13 |
chown root:alertmanager-irc-relay /etc/alertmanager-irc-relay.yml |
| 14 |
chmod 640 /etc/alertmanager-irc-relay.yml |
| 15 |
fi |
| 16 |
;; |
| 17 |
|
| 18 |
abort-upgrade|abort-remove|abort-deconfigure) |
| 19 |
: |
| 20 |
;; |
| 21 |
|
| 22 |
*) |
| 23 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 24 |
exit 1 |
| 25 |
;; |
| 26 |
esac |
| 27 |
|
| 28 |
# dh_installdeb will replace this with shell code automatically |
| 29 |
# generated by other debhelper scripts. |
| 30 |
|
| 31 |
#DEBHELPER# |
| 32 |
|
| 33 |
exit 0 |