Files
p2pool/debian/postrm
Wang Defa b4a284efd1
All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in -12s
Build and Release / build-and-test (amd64, alpine) (push) Successful in -5s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 0s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 9s
Build and Release / release (push) Successful in 38s
简化 CI 配置:统一使用 stable Debian 发行版
- 移除多发行版 Debian Package Registry 上传(bookworm、trixie)
- 统一上传到 stable 发行版池,简化维护和用户体验
- 更新 README 和文档系统的安装指南
- 新增 CI 工作流程概述文档
- 保持 ubuntu 和 alpine 双发行版构建支持
2025-12-25 11:05:47 +08:00

36 lines
704 B
Bash
Executable File

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