Files
bitoj_python/packaging/ubuntu/postrm
2026-02-08 17:18:23 +08:00

19 lines
390 B
Bash

#!/bin/sh
set -e
if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload
fi
if [ "$1" = "purge" ]; then
rm -rf /etc/bitoj
rm -f /etc/apparmor.d/bitoj-guards
if command -v service >/dev/null 2>&1; then
service apparmor reload >/dev/null 2>&1 || true
elif [ -x /etc/init.d/apparmor ]; then
/etc/init.d/apparmor reload >/dev/null 2>&1 || true
fi
fi
exit 0