mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update homeassistant-core-v5.sh
This commit is contained in:
		
							parent
							
								
									2172a2031a
								
							
						
					
					
						commit
						891e6ef1e2
					
				| 
						 | 
					@ -323,10 +323,9 @@ function update_script() {
 | 
				
			||||||
  "3" "Install HACS" OFF \
 | 
					  "3" "Install HACS" OFF \
 | 
				
			||||||
  "4" "Install FileBrowser" OFF \
 | 
					  "4" "Install FileBrowser" OFF \
 | 
				
			||||||
  3>&1 1>&2 2>&3)
 | 
					  3>&1 1>&2 2>&3)
 | 
				
			||||||
 | 
					 | 
				
			||||||
if [ "$UPD" == "1" ]; then
 | 
					 | 
				
			||||||
clear
 | 
					clear
 | 
				
			||||||
header_info
 | 
					header_info
 | 
				
			||||||
 | 
					if [ "$UPD" == "1" ]; then
 | 
				
			||||||
echo -e "\n   LOG VIEWER - Go to http://${IP}:8123 to setup \n"
 | 
					echo -e "\n   LOG VIEWER - Go to http://${IP}:8123 to setup \n"
 | 
				
			||||||
cd /srv/homeassistant && python3 -m venv . && source bin/activate && hass
 | 
					cd /srv/homeassistant && python3 -m venv . && source bin/activate && hass
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
| 
						 | 
					@ -363,8 +362,6 @@ echo -e "\n  Go to http://${IP}:8123 \n"
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
if [ "$UPD" == "3" ]; then
 | 
					if [ "$UPD" == "3" ]; then
 | 
				
			||||||
clear
 | 
					 | 
				
			||||||
header_info
 | 
					 | 
				
			||||||
msg_info "Installing Home Assistant Comunity Store (HACS)"
 | 
					msg_info "Installing Home Assistant Comunity Store (HACS)"
 | 
				
			||||||
apt update &>/dev/null
 | 
					apt update &>/dev/null
 | 
				
			||||||
apt install unzip &>/dev/null
 | 
					apt install unzip &>/dev/null
 | 
				
			||||||
| 
						 | 
					@ -375,8 +372,6 @@ echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integrat
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
if [ "$UPD" == "4" ]; then
 | 
					if [ "$UPD" == "4" ]; then
 | 
				
			||||||
clear
 | 
					 | 
				
			||||||
header_info
 | 
					 | 
				
			||||||
msg_info "Installing FileBrowser"
 | 
					msg_info "Installing FileBrowser"
 | 
				
			||||||
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash &>/dev/null
 | 
					curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash &>/dev/null
 | 
				
			||||||
filebrowser config init -a '0.0.0.0' &>/dev/null
 | 
					filebrowser config init -a '0.0.0.0' &>/dev/null
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue