简化 CI 配置:统一使用 stable Debian 发行版
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
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
- 移除多发行版 Debian Package Registry 上传(bookworm、trixie) - 统一上传到 stable 发行版池,简化维护和用户体验 - 更新 README 和文档系统的安装指南 - 新增 CI 工作流程概述文档 - 保持 ubuntu 和 alpine 双发行版构建支持
This commit is contained in:
5
debian/postrm
vendored
5
debian/postrm
vendored
@@ -5,10 +5,11 @@ case "$1" in
|
||||
purge)
|
||||
# Remove user and group
|
||||
if getent passwd p2pool >/dev/null; then
|
||||
deluser --system p2pool 2>/dev/null || true
|
||||
deluser --quiet p2pool || true
|
||||
fi
|
||||
|
||||
if getent group p2pool >/dev/null; then
|
||||
delgroup --system p2pool 2>/dev/null || true
|
||||
delgroup --quiet p2pool || true
|
||||
fi
|
||||
|
||||
# Remove data directories (only on purge)
|
||||
|
||||
15
debian/prerm
vendored
15
debian/prerm
vendored
@@ -1,10 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Stop service if running
|
||||
if [ -d /run/systemd/system ] && systemctl is-active --quiet p2pool.service; then
|
||||
echo "Stopping P2Pool service..."
|
||||
systemctl stop p2pool.service
|
||||
# Stop and disable service if running
|
||||
if [ -d /run/systemd/system ]; then
|
||||
if systemctl is-active --quiet p2pool.service; then
|
||||
echo "Stopping p2pool service..."
|
||||
systemctl stop p2pool.service
|
||||
fi
|
||||
|
||||
if systemctl is-enabled --quiet p2pool.service 2>/dev/null; then
|
||||
echo "Disabling p2pool service..."
|
||||
systemctl disable p2pool.service
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user