Update home-assistant-core-copy-data-home-assistant-core.sh

Stop both containers.
This commit is contained in:
tteckster 2024-03-01 04:48:34 -05:00 committed by GitHub
parent 05dc537124
commit 57d06ad2be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,6 +83,10 @@ whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "$TITLE" --
$CTID_FROM (${CTID_FROM_HOSTNAME}) -> $CTID_TO (${CTID_TO_HOSTNAME}) $CTID_FROM (${CTID_FROM_HOSTNAME}) -> $CTID_TO (${CTID_TO_HOSTNAME})
Version: 2022.10.03" 13 50 || exit Version: 2022.10.03" 13 50 || exit
info "Home Assistant Data from '$CTID_FROM' to '$CTID_TO'" info "Home Assistant Data from '$CTID_FROM' to '$CTID_TO'"
if [ $(pct status $CTID_FROM | sed 's/.* //') == 'running' ]; then
msg "Stopping '$CTID_FROM'..."
pct stop $CTID_FROM
fi
if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then
msg "Stopping '$CTID_TO'..." msg "Stopping '$CTID_TO'..."
pct stop $CTID_TO pct stop $CTID_TO