mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
13 lines
444 B
Plaintext
13 lines
444 B
Plaintext
#!/usr/bin/with-contenv sh
|
|
|
|
ingress_entry=$(curl -X GET \
|
|
-H "Authorization: Bearer ${SUPERVISOR_TOKEN}" \
|
|
-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
|
|
|
|
cd /opt/app
|
|
exec /ha-bootstrap.sh bin/teslamate start
|