#!/bin/sh set -e case "$1" in purge) # Forget which instances were enabled at boot rm -f /etc/systemd/system/multi-user.target.wants/terraria@*.service rm -rf /etc/systemd/system/terraria@.service.d # Scheduled backups (the backups themselves stay in /var/lib/terraria/backups) rm -f /etc/systemd/system/timers.target.wants/terraria-backup@*.timer rm -rf /etc/systemd/system/terraria-backup@*.timer.d /etc/systemd/system/terraria-backup@*.service.d # The daemon: whether it's on, its certificate and the computers it trusts rm -f /etc/systemd/system/multi-user.target.wants/terractld.service rm -rf /etc/systemd/system/terractld.service.d /var/lib/terractl cat >&2 <