From bc4640d589fcedc947e47ee19f334f45ea42eb46 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 18 Dec 2022 06:27:49 -0500 Subject: [PATCH] Update ha-copy-data.sh check PVE --- misc/ha-copy-data.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/ha-copy-data.sh b/misc/ha-copy-data.sh index 83f26a19..698c1cfb 100644 --- a/misc/ha-copy-data.sh +++ b/misc/ha-copy-data.sh @@ -2,6 +2,8 @@ # Use to copy all data from one Home Assistant LXC to another # run from the Proxmox Shell # bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/ha-copy-data.sh)" +clear +if ! command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Run from the Proxmox Shell"; exit; fi while true; do read -p "Use to copy all data from one Home Assistant LXC to another. Proceed(y/n)?" yn case $yn in