소스 검색

Update hacore2hacontainer-data.sh

check PVE
tteckster 2 년 전
부모
커밋
e994ce793c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      misc/hacore2hacontainer-data.sh

+ 2 - 0
misc/hacore2hacontainer-data.sh

@@ -1,4 +1,6 @@
 #!/usr/bin/env bash
+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 Core LXC to a Home Assistant Container LXC. Proceed(y/n)?" yn
   case $yn in