Sfoglia il codice sorgente

Update container-restore-from-backup.sh

check for PVE
tteckster 2 anni fa
parent
commit
bc3d30b416
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      misc/container-restore-from-backup.sh

+ 1 - 0
misc/container-restore-from-backup.sh

@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 #!/usr/bin/env bash
 clear
 clear
+if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️  Can't Run from the Proxmox Shell"; exit; fi
 YW=$(echo "\033[33m")
 YW=$(echo "\033[33m")
 BL=$(echo "\033[36m")
 BL=$(echo "\033[36m")
 RD=$(echo "\033[01;31m")
 RD=$(echo "\033[01;31m")