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:同步更新仓库配置
35 lines
705 B
Bash
Executable File
35 lines
705 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
# Remove user and group
|
|
if getent passwd xxxigcc >/dev/null; then
|
|
deluser --quiet xxxigcc || true
|
|
fi
|
|
|
|
if getent group xxxigcc >/dev/null; then
|
|
delgroup --quiet xxxigcc || true
|
|
fi
|
|
|
|
# Remove data directories (only on purge)
|
|
rm -rf /var/log/xxxigcc
|
|
rm -rf /etc/xxxigcc
|
|
;;
|
|
|
|
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 |