This commit is contained in:
tteckster 2023-03-22 15:21:30 -04:00 committed by GitHub
parent 38381bb6ef
commit 5b1bcc0ae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 188 additions and 182 deletions

View File

@ -60,13 +60,13 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb
header_info header_info
if [ "$UPD" == "1" ]; then if [ "$UPD" == "1" ]; then
apk update && apk upgrade apk update && apk upgrade
exit; exit
fi fi
if [ "$UPD" == "2" ]; then if [ "$UPD" == "2" ]; then
header_info header_info
echo "In the process of creating a method to update" echo "In the process of creating a method to update"
exit; exit
fi fi
} }

View File

@ -59,7 +59,7 @@ UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spaceb
header_info header_info
if [ "$UPD" == "1" ]; then if [ "$UPD" == "1" ]; then
apk update && apk upgrade apk update && apk upgrade
exit; exit
fi fi
} }

View File

@ -51,7 +51,10 @@ function default_settings() {
} }
function update_script() { function update_script() {
if [[ ! -d /srv/homeassistant ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /srv/homeassistant ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
PY=$(ls /srv/homeassistant/lib/) PY=$(ls /srv/homeassistant/lib/)
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \ UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \

View File

@ -51,7 +51,10 @@ function default_settings() {
} }
function update_script() { function update_script() {
if [[ ! -d /var/lib/docker/volumes/hass_config/_data ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /var/lib/docker/volumes/hass_config/_data ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \ UPD=$(whiptail --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \
"1" "Update ALL Containers" ON \ "1" "Update ALL Containers" ON \
"2" "Remove ALL Unused Images" OFF \ "2" "Remove ALL Unused Images" OFF \