diff --git a/ct/esphome.sh b/ct/esphome.sh index 127a2d9a5..e21641a32 100644 --- a/ct/esphome.sh +++ b/ct/esphome.sh @@ -73,6 +73,11 @@ EOF msg_ok "Updated systemd service" fi + msg_info "Linking esphome to /usr/local/bin" + rm -f /usr/local/bin/esphome + ln -s /opt/esphome/.venv/bin/esphome /usr/local/bin/esphome + msg_ok "Linked esphome binary" + msg_info "Starting ${APP}" systemctl start esphomeDashboard msg_ok "Started ${APP}" diff --git a/install/esphome-install.sh b/install/esphome-install.sh index 8e8e022c5..b3cf777be 100644 --- a/install/esphome-install.sh +++ b/install/esphome-install.sh @@ -29,6 +29,11 @@ $STD /opt/esphome/.venv/bin/python -m pip install --upgrade pip $STD /opt/esphome/.venv/bin/python -m pip install esphome tornado esptool msg_ok "Setup and Installed ESPHome" +msg_info "Linking esphome to /usr/local/bin" +rm -f /usr/local/bin/esphome +ln -s /opt/esphome/.venv/bin/esphome /usr/local/bin/esphome +msg_ok "Linked esphome binary" + msg_info "Creating Service" mkdir -p /root/config cat </etc/systemd/system/esphomeDashboard.service