All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in -11s
Build and Release / build-and-test (amd64, alpine) (push) Successful in -5s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in -1s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 8s
Build and Release / release (push) Successful in 37s
- CI:简化 Debian 包发布流程,统一使用 stable 发行版 - 移除 bookworm 和 trixie 多发行版支持,简化维护 - postinst:优化安装完成提示,提供清晰的配置和启动步骤 - postrm/prerm:改进卸载和升级前的清理逻辑 - README:更新安装说明,使用 stable 仓库 - install.deb.sh:同步更新仓库配置
20 lines
470 B
Bash
Executable File
20 lines
470 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Stop services before removal
|
|
if [ -d /run/systemd/system ]; then
|
|
for service in xxxigcc-server.service xxxigcc-daemon.service; do
|
|
if systemctl is-active --quiet "$service"; then
|
|
echo "Stopping $service..."
|
|
systemctl stop "$service"
|
|
fi
|
|
|
|
if systemctl is-enabled --quiet "$service"; then
|
|
echo "Disabling $service..."
|
|
systemctl disable "$service"
|
|
fi
|
|
done
|
|
fi
|
|
|
|
exit 0
|