Files
xxxig/debian/postrm
T
wangdefaandClaude Opus 4.8 28bc2116fd
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 1m12s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 1m21s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 5m24s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 6m8s
Build and Release / release (push) Has been skipped
初始化 XXXig 打包部署脚本与 CI 流水线
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 11:28:03 +08:00

35 lines
693 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
purge)
# Remove user and group
if getent passwd xxxig >/dev/null; then
deluser --quiet xxxig || true
fi
if getent group xxxig >/dev/null; then
delgroup --quiet xxxig || true
fi
# Remove data directories (only on purge)
rm -rf /var/log/xxxig
rm -rf /etc/xxxig
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# Do nothing
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Reload systemd
if [ -d /run/systemd/system ]; then
systemctl daemon-reload
fi
exit 0