mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-08 21:59:13 +02:00
update: esphome to install and run ESPHome Device Builder (#15195)
This commit is contained in:
@@ -26,8 +26,8 @@ cd /opt/esphome
|
||||
$STD uv venv --clear /opt/esphome/.venv
|
||||
$STD /opt/esphome/.venv/bin/python -m ensurepip --upgrade
|
||||
$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"
|
||||
$STD /opt/esphome/.venv/bin/python -m pip install esphome esphome-device-builder esptool
|
||||
msg_ok "Setup and Installed ESPHome Device Builder"
|
||||
|
||||
msg_info "Linking esphome to /usr/local/bin"
|
||||
rm -f /usr/local/bin/esphome
|
||||
@@ -36,13 +36,13 @@ msg_ok "Linked esphome binary"
|
||||
|
||||
msg_info "Creating Service"
|
||||
mkdir -p /root/config
|
||||
cat <<EOF >/etc/systemd/system/esphomeDashboard.service
|
||||
cat <<EOF >/etc/systemd/system/esphome-device-builder.service
|
||||
[Unit]
|
||||
Description=ESPHome Dashboard
|
||||
Description=ESPHome Device Builder
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/esphome/.venv/bin/esphome dashboard /root/config/
|
||||
ExecStart=/opt/esphome/.venv/bin/esphome-device-builder /root/config/
|
||||
Restart=always
|
||||
User=root
|
||||
|
||||
@@ -50,7 +50,7 @@ User=root
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
systemctl enable -q --now esphomeDashboard
|
||||
systemctl enable -q --now esphome-device-builder
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
|
||||
Reference in New Issue
Block a user