Update alpine-esphome-install.sh

This commit is contained in:
tteckster 2023-03-25 09:25:12 -04:00 committed by GitHub
parent 1e42e065b4
commit 18af21a1cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,22 +26,20 @@ msg_info "Installing Alpine-ESPHome"
$STD apk add py3-pip $STD apk add py3-pip
$STD pip3 install esphome $STD pip3 install esphome
$STD pip3 install tornado esptool $STD pip3 install tornado esptool
RC_SVCNAME="esphome"
cat <<EOF >/etc/init.d/esphome cat <<EOF >/etc/init.d/esphome
#!/sbin/openrc-run #!/sbin/openrc-run
name="esphome" name="esphome"
description="ESPHome Service" description="ESPHome Service"
RC_SVCNAME="esphome"
command="/usr/bin/esphome /root/config/ dashboard" command="/usr/bin/esphome /root/config/ dashboard"
pidfile="/run/$RC_SVCNAME/pid" pidfile="/run/esphome/pid"
depend() { depend() {
need net need net
} }
start_pre() { start_pre() {
checkpath --directory --mode 0755 /run/$RC_SVCNAME checkpath --directory --mode 0755 /run/esphome
} }
start() { start() {