Update esphome-install.sh

revert to standard install
This commit is contained in:
tteckster 2023-06-23 21:33:35 -04:00 committed by GitHub
parent 53e5964633
commit 697b409600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -30,10 +30,10 @@ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3"
msg_info "Installing ESPHome"
mkdir /srv/esphome
cd /srv/esphome
python3 -m venv .
source bin/activate
#mkdir /srv/esphome
#cd /srv/esphome
#python3 -m venv .
#source bin/activate
$STD pip install esphome tornado esptool
msg_ok "Installed ESPHome"
@ -44,7 +44,8 @@ Description=ESPHome Dashboard
After=network.target
[Service]
ExecStart=/srv/esphome/bin/esphome dashboard /root/config/
#ExecStart=/srv/esphome/bin/esphome dashboard /root/config/
ExecStart=/usr/local/bin/esphome dashboard /root/config/
Restart=always
User=root