mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-12-05 15:24:38 -05:00
1 parent
ea05e211fb
commit
6842eb9946
1 file changed
+5
-1
@@ -5,7 +5,11 @@ ingress_entry=$(curl -X GET \
|
||||
-H "Content-Type: application/json" \
|
||||
-s http://supervisor/addons/self/info | \
|
||||
jq -r '.data.ingress_entry')
|
||||
|
||||
sed -i "s^url: \[^url: \[path: \"${ingress_entry}\", ^" /opt/app/releases/*/runtime.exs
|
||||
|
||||
# Issue #58 hack to fix app.js
|
||||
sed -i "s^/live^${ingress_entry}/live^g" /opt/app/lib/teslamate-*/priv/static/assets/app*.js
|
||||
|
||||
cd /opt/app
|
||||
exec /ha-bootstrap.sh bin/teslamate start
|
||||
exec /ha-bootstrap.sh bin/teslamate start
|
||||
Reference in new issue
Block a user