Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/d345712e7b06309dab9e6f529bdf2b9a57f41bfe?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
19 additions and
18 deletions
@ -26,38 +26,39 @@ msg_info "Installing Alpine-ESPHome"
$STD apk add py3-pip
$STD pip3 install esphome
$STD pip3 install tornado esptool
cat <<EOF >/etc/init.d/esphome
#!/sbin/openrc-run
name = "esphome"
description = "ESPHome Service"
command = "/usr/bin/esphome /root/config/ dashboard"
pidfile = "/run/esphome/pid"
service_path = "/etc/init.d/esphome"
echo " #!/sbin/openrc-run
name = \" esphome\"
description = \" ESPHome Dashboard\"
command = \" /usr/bin/esphome /root/config/ dashboard\"
command_user = \" root\"
command_background = true
pidfile = \" /run/\$ name.pid\"
depend( ) {
need net
}
start_pre( ) {
checkpath --directory --mode 0755 /run/espho me
checkpath --directory --mode 0755 /run/\$ na me
}
start( ) {
ebegin " Starting $description "
start-stop-daemon --start --quiet --exec $command
eend $?
ebegin \" Starting \$ description\ "
start-stop-daemon --start --quiet --background --exec /usr/bin/esphome -- /root/config/ dashboard
eend \$ ?
}
stop( ) {
ebegin " Stopping $description "
start-stop-daemon --stop --quiet --exec $command
eend $?
}
EOF
ebegin \" Stopping \$ description\"
pkill esphome
eend \$ ?
} " > $service_path
chmod 755 /etc/init.d/esphome
/etc/init.d/esphome star t
rc-update add esphome defaul t
chmod 755 $service_path
$STD rc-update add esphome defaul t
$STD /etc/init.d/esphome star t
msg_ok "Installed Alpine-ESPHome"
motd_ssh