From e9ce4e1937da4da5873365a088541c5b30a0b0e5 Mon Sep 17 00:00:00 2001 From: tteck Date: Thu, 19 Aug 2021 19:31:50 -0400 Subject: [PATCH] Add files via upload --- update_ha.md | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 update_ha.md diff --git a/update_ha.md b/update_ha.md new file mode 100644 index 00000000..187acdde --- /dev/null +++ b/update_ha.md @@ -0,0 +1,58 @@ +In the homeassistant lxc console run `nano upha.sh` +it will open a new file, copy and paste the Stable Branch +Save and exit the text editor with "Ctrl+O", "Enter" and "Ctrl+X" +To update HA go to the root prompt and run `bash upha.sh` + +Stable Branch +``` +### upha.sh ### +#!/bin/bash + +echo -e "\e[1;33m Pulling New Stable Version... \e[0m" +docker pull homeassistant/home-assistant:stable +echo -e "\e[1;33m Stopping Home Assistant... \e[0m" +docker stop homeassistant +echo -e "\e[1;33m Removing Home Assistant... \e[0m" +docker rm homeassistant +echo -e "\e[1;33m Starting Home Assistant... \e[0m" +docker run -d --name homeassistant --restart unless-stopped -v hass_config:/config -e TZ=US/Eastern --net=host homeassistant/home-assistant:stable +echo -e "\e[1;33m Removing Old Image... \e[0m" +docker image prune -f +echo -e "\e[1;33m Finished Update! \e[0m" +``` + +Beta Branch +``` +### uphabeta.sh ### +#!/bin/bash + +echo -e "\e[1;33m Pulling New Beta Version... \e[0m" +docker pull homeassistant/home-assistant:beta +echo -e "\e[1;33m Stopping Home Assistant... \e[0m" +docker stop homeassistant +echo -e "\e[1;33m Removing Home Assistant... \e[0m" +docker rm homeassistant +echo -e "\e[1;33m Starting Home Assistant... \e[0m" +docker run -d --name homeassistant --restart unless-stopped -v hass_config:/config -e TZ=US/Eastern --net=host homeassistant/home-assistant:beta +echo -e "\e[1;33m Removing Old Image... \e[0m" +docker image prune -f +echo -e "\e[1;33m Finished Update! \e[0m" +``` + +Development Branch +``` +### uphadev.sh ### +#!/bin/bash + +echo -e "\e[1;33m Pulling New Dev Version... \e[0m" +docker pull homeassistant/home-assistant:dev +echo -e "\e[1;33m Stopping Home Assistant... \e[0m" +docker stop homeassistant +echo -e "\e[1;33m Removing Home Assistant... \e[0m" +docker rm homeassistant +echo -e "\e[1;33m Starting Home Assistant... \e[0m" +docker run -d --name homeassistant --restart unless-stopped -v hass_config:/config -e TZ=US/Eastern --net=host homeassistant/home-assistant:dev +echo -e "\e[1;33m Removing Old Image... \e[0m" +docker image prune -f +echo -e "\e[1;33m Finished Update! \e[0m" +```