Files
wangdefaandClaude Opus 4.8 317973e94d
Build and Release Mond / build-and-test (amd64) (push) Successful in 11m47s
Build and Release Mond / build-and-test (arm64) (push) Successful in 18m24s
Build and Release Mond / release (push) Has been skipped
feat: 对齐 xxxig/proxy 打包规范并迁移配置至 /etc/mond
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 22:00:48 +08:00

37 lines
724 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
purge)
# Remove user and group
if getent passwd mond >/dev/null; then
deluser --quiet mond || true
fi
if getent group mond >/dev/null; then
delgroup --quiet mond || true
fi
# Remove data/config directories (only on purge)
rm -rf /var/log/mond
rm -rf /var/lib/mond
rm -rf /etc/mond
;;
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