Bladeren bron

Update ha-copy-data.sh

check PVE
tteckster 2 jaren geleden
bovenliggende
commit
bc4640d589
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      misc/ha-copy-data.sh

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