Allow running without arguments

https://github.com/alexbelgium/hassio-addons/issues/565#issuecomment-1557319726
This commit is contained in:
Alexandre
2023-05-22 16:30:06 +02:00
committed by GitHub
parent ed82dbcc38
commit 398c8acbbd

View File

@@ -11,4 +11,8 @@ bashio::log.info "Starting app"
# Launch app
cd /app || true
./agent "$PORTAINER_AGENT_ARGS" 2>/dev/null || ./agent
if bashio::config.has_value 'PORTAINER_AGENT_ARGS'; then
./agent "$PORTAINER_AGENT_ARGS" 2>/dev/null
else
./agent
fi