peach-workspace/peach-monitor/debian/postrm

14 lines
351 B
Bash

#!/bin/sh
# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload > /dev/null || true
fi
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask peach-monitor.service > /dev/null
fi
fi