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