From f02be4ba26e6f69efde60d206e0169ed95b5a1dd Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 16 Feb 2022 07:37:49 -0500 Subject: [PATCH] Update ha_setup.sh --- setup/ha_setup.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/setup/ha_setup.sh b/setup/ha_setup.sh index 523f03f3..0c5f658e 100644 --- a/setup/ha_setup.sh +++ b/setup/ha_setup.sh @@ -114,9 +114,10 @@ show_menu(){ printf "${menu}**${number} 1)${safe} Switch to Stable Branch ${normal}\n" printf "${menu}**${number} 2)${number} Switch to Beta Branch ${normal}\n" printf "${menu}**${number} 3)${fgred} Switch to Dev Branch ${normal}\n" - printf "${menu}**${number} 4)${safe} Just Update Containers ${normal}\n" - printf "${menu}**${number} 5)${number} Remove Unused Images ${normal}\n" - printf "${menu}**${number} 6)${safe} Update Host OS ${normal}\n" + printf "${menu}**${number} 4)${fgred} Edit Home Assistant Configuration ${normal}\n" + printf "${menu}**${number} 5)${safe} Just Update Containers ${normal}\n" + printf "${menu}**${number} 6)${number} Remove Unused Images ${normal}\n" + printf "${menu}**${number} 7)${safe} Update Host OS ${normal}\n" printf "${menu}*********************************************${normal}\n" printf "Please choose an option from the menu and enter or ${fgred}x to exit. ${normal}" read opt @@ -153,16 +154,21 @@ while [ $opt != '' ] break; ;; 4) clear; + option_picked "Editing Home Assistant Configuration"; + nano /var/lib/docker/volumes/hass_config/_data/configuration.yaml; + exit; + ;; + 5) clear; option_picked "Just Updating Containers"; ./update-containers.sh; exit; ;; - 5) clear; + 6) clear; option_picked "Removing Unused Images"; docker image prune -af; exit; ;; - 6) clear; + 7) clear; option_picked "Updating Host OS"; apt update && apt upgrade -y; exit;