Update z2m-copy-data.sh
This commit is contained in:
parent
076a8a7b12
commit
2450e41b37
1 changed files with 4 additions and 1 deletions
|
@ -83,7 +83,10 @@ whiptail --defaultno --title "$TITLE" --yesno \
|
|||
$CTID_FROM (${CTID_FROM_HOSTNAME}) -> $CTID_TO (${CTID_TO_HOSTNAME})
|
||||
Version: 2022.01.23" 13 50 || exit
|
||||
info "Zigbee2MQTT Data from '$CTID_FROM' to '$CTID_TO'"
|
||||
|
||||
if [ $(pct status $CTID_TO | sed 's/.* //') == 'running' ]; then
|
||||
msg "Stopping '$CTID_TO'..."
|
||||
pct stop $CTID_TO
|
||||
fi
|
||||
msg "Mounting Container Disks..."
|
||||
DATA_PATH=/opt/zigbee2mqtt/data/
|
||||
CTID_FROM_PATH=$(pct mount $CTID_FROM | sed -n "s/.*'\(.*\)'/\1/p") || \
|
||||
|
|
Loading…
Reference in a new issue