Optimize image

This commit is contained in:
Max Winterstein
2021-12-07 12:56:43 +01:00
parent ae8ba286b3
commit 3a26d0c36a
9 changed files with 69 additions and 60 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/with-contenv bashio
bashio::log.info "Copy setings file"
cp /data/options.json /app/toogoodtogo_ha_mqtt_bridge/settings.local.json
if ! bashio::fs.file_exists /data/tokens.json; then
bashio::log.magenta "No saved tokens found. "
bashio::log.magenta "Please make sure to check your email for the login request and answer quickly."
bashio::log.magenta "You can't open it on a mobile phone where the TGTG app itself is installed."
else
bashio::log.cyan "Saved tokens found."
bashio::log.cyan "If you encoure problems reinstalling the add-on might help."
fi

View File

@@ -0,0 +1,5 @@
#!/usr/bin/execlineb -S0
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }
s6-svscanctl -t /var/run/s6/services

View File

@@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bashio
bashio::log.info "Strating Bridge..."
exec python /app/toogoodtogo_ha_mqtt_bridge/main.py