mirror of https://github.com/tteck/Proxmox.git
parent
92e4c446ef
commit
4a997ef40b
|
@ -321,6 +321,7 @@ function update_script() {
|
||||||
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Choose Type" 8 58 2 \
|
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Choose Type" 8 58 2 \
|
||||||
"1" "Update ALL Containers" ON \
|
"1" "Update ALL Containers" ON \
|
||||||
"2" "Remove ALL Unused Images" OFF \
|
"2" "Remove ALL Unused Images" OFF \
|
||||||
|
"3" "Install HACS" OFF \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
|
@ -348,6 +349,18 @@ docker image prune -af
|
||||||
msg_ok "Removed ALL Unused Images"
|
msg_ok "Removed ALL Unused Images"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
if [ "$UPD" == "3" ]; then
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
msg_info "Installing Home Assistant Comunity Store (HACS)"
|
||||||
|
apt update &>/dev/null
|
||||||
|
apt install unzip &>/dev/null
|
||||||
|
cd /var/lib/docker/volumes/hass_config/_data
|
||||||
|
wget -O - https://get.hacs.xyz | bash -
|
||||||
|
msg_ok "Installed Home Assistant Comunity Store (HACS)"
|
||||||
|
echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
clear
|
clear
|
||||||
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
|
if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
|
||||||
|
|
Loading…
Reference in New Issue