diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index 9864695e..b6567eb8 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -63,7 +63,6 @@ function update_script() { "1" "Update Core" ON \ "2" "Install HACS" OFF \ "3" "Install FileBrowser" OFF \ - "4" "Install/Update AppDaemon" OFF \ 3>&1 1>&2 2>&3) header_info if [ "$UPD" == "1" ]; then @@ -136,78 +135,6 @@ WantedBy=default.target" >$service_path ${BL}http://$IP:8080${CL} admin|changeme\n" exit fi - if [ "$UPD" == "4" ]; then - clear - header_info - if [[ ! -d /srv/appdaemon ]]; then - msg_info "Installing AppDaemon" - mkdir /srv/appdaemon - cd /srv/appdaemon - python3 -m venv . - source bin/activate - pip install appdaemon &>/dev/null - mkdir -p /root/.homeassistant/appdaemon/apps - cat >/root/.homeassistant/appdaemon/appdaemon.yaml < - token: -http: - url: http://127.0.0.1:5050 -admin: -api: -EOF - msg_ok "Installed AppDaemon" - - msg_info "Creating Service" - cat >/etc/systemd/system/appdaemon.service </dev/null - msg_ok "Created Service" - - msg_ok "Completed Successfully!\n" - echo -e "AppDaemon should be reachable by going to the following URL. - ${BL}http://$IP:5050${CL}\n" - exit - else - msg_info "Upgrading AppDaemon" - msg_info "Stopping AppDaemon" - systemctl stop appdaemon - msg_ok "Stopped AppDaemon" - - msg_info "Updating AppDaemon" - source /srv/appdaemon/bin/activate - pip install --upgrade appdaemon &>/dev/null - msg_ok "Updated AppDaemon" - - msg_info "Starting AppDaemon" - systemctl start appdaemon - sleep 2 - msg_ok "Started AppDaemon" - msg_ok "Update Successful" - echo -e "\n Go to http://${IP}:5050 \n" - exit - fi - fi } start