postremove.sh
 1#!/bin/sh
 2set -e
 3
 4if ! command -V systemctl >/dev/null 2>&1; then
 5	echo "Not running SystemD, ignoring"
 6	exit 0
 7fi
 8
 9echo "Disabling and starting soft-server.service"
10systemctl stop soft-serve.service
11systemctl disable soft-serve.service
12systemctl daemon-reload
13systemctl reset-failed
14
15echo "WARN: the soft-serve user/group and /var/lib/soft-serve directory were not removed"