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 ---