From 989b21a0da934058cb9f619c926406e60ea71d83 Mon Sep 17 00:00:00 2001 From: Martin Norrsken Date: Tue, 16 Mar 2021 23:41:51 +0100 Subject: [PATCH] Remove unit files after disabling, instead of before Signed-off-by: Martin Norrsken --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 00101ae0e7..50d1528d36 100755 --- a/install.sh +++ b/install.sh @@ -694,9 +694,9 @@ EOF # --- disable current service if loaded -- systemd_disable() { + $SUDO systemctl disable ${SYSTEM_NAME} >/dev/null 2>&1 || true $SUDO rm -f /etc/systemd/system/${SERVICE_K3S} || true $SUDO rm -f /etc/systemd/system/${SERVICE_K3S}.env || true - $SUDO systemctl disable ${SYSTEM_NAME} >/dev/null 2>&1 || true } # --- capture current env and create file containing k3s_ variables ---