diff options
Diffstat (limited to 'packaging/scripts/preremove.sh')
| -rw-r--r-- | packaging/scripts/preremove.sh | 25 | +0 −25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/packaging/scripts/preremove.sh b/packaging/scripts/preremove.sh deleted file mode 100644 --- a/packaging/scripts/preremove.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# SPDX-FileCopyrightText: 2026 Nikolay Govorov -# SPDX-License-Identifier: AGPL-3.0-or-later - -set -e - -if [ -x "/bin/systemctl" ] && [ -d /run/systemd/system ]; then - /bin/systemctl stop mirum-server.service || true - /bin/systemctl disable mirum-server.service || true - - /bin/systemctl stop 'mirum-worker@*' || true - /bin/systemctl disable mirum-worker@.service || true -fi - -if command -v rc-service >/dev/null; then - rc-service mirum-server stop || true - rc-update del mirum-server || true - - for link in /etc/init.d/mirum-worker.*; do - [ -e "$link" ] || continue - svc=$(basename "$link") - rc-service "$svc" stop || true - rc-update del "$svc" || true - done -fi |
