Some checks failed
Build and Release / build-and-test (arm64, alpine) (push) Successful in 8s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 14s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 14s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 23s
Build and Release / release (push) Failing after 26s
16 lines
346 B
Bash
16 lines
346 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Stop service before removal
|
|
if [ -d /run/systemd/system ]; then
|
|
if systemctl is-active xxxigcc-proxy.service >/dev/null 2>&1; then
|
|
systemctl stop xxxigcc-proxy.service
|
|
fi
|
|
|
|
if systemctl is-enabled xxxigcc-proxy.service >/dev/null 2>&1; then
|
|
systemctl disable xxxigcc-proxy.service
|
|
fi
|
|
fi
|
|
|
|
exit 0
|