From a3b29e129adae26f8144438645ba7382dcd5e7a3 Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Wed, 5 Apr 2023 11:11:11 -0400 Subject: [PATCH] Make shutdown process less harsh. --- deployment/down.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deployment/down.sh b/deployment/down.sh index af7d72b..186533f 100755 --- a/deployment/down.sh +++ b/deployment/down.sh @@ -48,7 +48,9 @@ for VIRTUAL_MACHINE in www btcpayserver; do if lxc list | grep -q "$LXD_NAME"; then bash -c "./project/deploy.sh --stop --no-cert-renew --skip-$SKIP" - lxc delete -f "$LXD_NAME" + lxc stop "$LXD_NAME" + + lxc delete "$LXD_NAME" # remove the ssh known endpoint else we get warnings. ssh-keygen -f "$SSH_HOME/known_hosts" -R "$LXD_NAME"