Files
xxxigcc/debian/prerm
Wang Defa 9142021f26
All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in 8s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 15s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 19s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 37s
Build and Release / release (push) Successful in 1m8s
添加deb包构建,删除容器构建
2025-12-03 16:10:42 +08:00

18 lines
405 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 "$service" >/dev/null 2>&1; then
systemctl stop "$service"
fi
if systemctl is-enabled "$service" >/dev/null 2>&1; then
systemctl disable "$service"
fi
done
fi
exit 0