From deb681a21186f16c97921e4cbc7095abee8f3e49 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 18 Dec 2022 06:28:48 -0500 Subject: [PATCH] Update ha-copy-data-podman.sh check PVE --- misc/ha-copy-data-podman.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/ha-copy-data-podman.sh b/misc/ha-copy-data-podman.sh index 7296519c..2b8abc13 100644 --- a/misc/ha-copy-data-podman.sh +++ b/misc/ha-copy-data-podman.sh @@ -2,6 +2,8 @@ # Use to copy all data from a Home Assistant LXC to a Podman Home Assistant LXC. # run from the Proxmox Shell # bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/ha-copy-data-podman.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 a Home Assistant LXC to a Podman Home Assistant LXC. Proceed(y/n)?" yn case $yn in