mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update haos-vm-v3.sh
This commit is contained in:
		
							parent
							
								
									be3ba17993
								
							
						
					
					
						commit
						df91454ca6
					
				| 
						 | 
					@ -1,4 +1,5 @@
 | 
				
			||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					echo -e "Loading..."
 | 
				
			||||||
GEN_MAC=$(echo '00 60 2f'$(od -An -N3 -t xC /dev/urandom) | sed -e 's/ /:/g' | tr '[:lower:]' '[:upper:]')
 | 
					GEN_MAC=$(echo '00 60 2f'$(od -An -N3 -t xC /dev/urandom) | sed -e 's/ /:/g' | tr '[:lower:]' '[:upper:]')
 | 
				
			||||||
NEXTID=$(pvesh get /cluster/nextid)
 | 
					NEXTID=$(pvesh get /cluster/nextid)
 | 
				
			||||||
RELEASE=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]')
 | 
					RELEASE=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]')
 | 
				
			||||||
| 
						 | 
					@ -50,6 +51,7 @@ TEMP_DIR=$(mktemp -d)
 | 
				
			||||||
pushd $TEMP_DIR >/dev/null
 | 
					pushd $TEMP_DIR >/dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
while true; do
 | 
					while true; do
 | 
				
			||||||
 | 
					    clear
 | 
				
			||||||
    read -p "This will create a New Home Assistant OS VM. Proceed(y/n)?" yn
 | 
					    read -p "This will create a New Home Assistant OS VM. Proceed(y/n)?" yn
 | 
				
			||||||
    case $yn in
 | 
					    case $yn in
 | 
				
			||||||
        [Yy]* ) break;;
 | 
					        [Yy]* ) break;;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue