From 653eeceaf2dbcc96bf2ee3c6aa1a9aa68a3e6759 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 17 Oct 2024 13:35:57 -0700 Subject: [PATCH] proxmox: stop container prior to restore. --- install/proxmox/install-scrypted-proxmox.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/proxmox/install-scrypted-proxmox.sh b/install/proxmox/install-scrypted-proxmox.sh index d96b407ce..08e34afe0 100644 --- a/install/proxmox/install-scrypted-proxmox.sh +++ b/install/proxmox/install-scrypted-proxmox.sh @@ -77,6 +77,7 @@ then fi fi +pct stop $VMID 2>&1 > /dev/null pct restore $VMID $SCRYPTED_TAR_ZST $@ if [ "$?" != "0" ] @@ -127,7 +128,7 @@ then fi echo "Stopping scrypted..." - pct stop $RESTORE_VMID + pct stop $RESTORE_VMID 2>&1 > /dev/null echo "Preparing rootfs reset..." pct destroy $SCRYPTED_BACKUP_VMID