1
1

Make shutdown process less harsh.

This commit is contained in:
Derek Smith 2023-04-05 11:11:11 -04:00
parent 6a0255a326
commit a3b29e129a
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -48,7 +48,9 @@ for VIRTUAL_MACHINE in www btcpayserver; do
if lxc list | grep -q "$LXD_NAME"; then if lxc list | grep -q "$LXD_NAME"; then
bash -c "./project/deploy.sh --stop --no-cert-renew --skip-$SKIP" 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. # remove the ssh known endpoint else we get warnings.
ssh-keygen -f "$SSH_HOME/known_hosts" -R "$LXD_NAME" ssh-keygen -f "$SSH_HOME/known_hosts" -R "$LXD_NAME"