浏览代码

Update ha-copy-data-podman.sh

check PVE
tteckster 2 年之前
父节点
当前提交
deb681a211
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      misc/ha-copy-data-podman.sh

+ 2 - 0
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