From e1c4f3cb4f942121eb1b3709f735b25576e8790b Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 1 Dec 2022 15:56:15 +0800 Subject: [PATCH] debian --- menhera.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/menhera.sh b/menhera.sh index 4f3ff38..46fd61c 100755 --- a/menhera.sh +++ b/menhera.sh @@ -101,6 +101,7 @@ mount --move "${OLDROOT}/${WORKDIR}" "${WORKDIR}" echo "Restarting SSH daemon..." systemctl daemon-reload +systemctl is-active ssh && systemctl stop ssh || true systemctl restart sshd echo "Disabling swap..."