24 lines
437 B
Bash
24 lines
437 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
remove|upgrade|deconfigure)
|
|
if [ -d /run/systemd/system ]; then
|
|
systemctl stop age-verification-daemon.service >/dev/null 2>&1 || true
|
|
systemctl disable age-verification-daemon.service >/dev/null 2>&1 || true
|
|
fi
|
|
;;
|
|
|
|
failed-upgrade)
|
|
;;
|
|
|
|
*)
|
|
echo "prerm called with unknown argument '$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|