1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-12-04 14:46:37 -05:00
gophernicus/debian/postrm
2016-09-08 17:06:23 +03:00

16 lines
348 B
Bash

#!/bin/sh
if [ "$1" = "purge" -a -x "/usr/sbin/update-inetd" ]; then
/usr/sbin/update-inetd --remove "#<off># gopher"
fi
if [ -d "/run/systemd/system" ]; then
systemctl --system daemon-reload >/dev/null || true
fi
if [ -x "/usr/bin/deb-systemd-helper" ]; then
/usr/bin/deb-systemd-helper disable gophernicus.socket >/dev/null
fi
#DEBHELPER#