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
18 lines
405 B
Bash
Executable File
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
|