Update esphome.sh

update the installation of either standard or venv
pull/1593/head
tteckster 1 year ago committed by GitHub
parent 63ed687b2c
commit 22b77fdb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,13 +52,16 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -f /usr/local/bin/esphome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -f /etc/systemd/system/esphomeDashboard.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Stopping ESPHome" msg_info "Stopping ESPHome"
systemctl stop esphomeDashboard systemctl stop esphomeDashboard
msg_ok "Stopped ESPHome" msg_ok "Stopped ESPHome"
msg_info "Updating ESPHome" msg_info "Updating ESPHome"
pip3 install esphome --upgrade &>/dev/null if [[ -d /srv/esphome ]]; then
source /srv/esphome/bin/activate &>/dev/null
fi
pip3 install -U esphome &>/dev/null
msg_ok "Updated ESPHome" msg_ok "Updated ESPHome"
msg_info "Starting ESPHome" msg_info "Starting ESPHome"

Loading…
Cancel
Save

Powered by BW's shoe-string budget.