Align hostname with container name

This commit is contained in:
Alexandre
2025-12-31 11:24:12 +01:00
parent b4cf41bdaf
commit baaf441b01

View File

@@ -7,6 +7,9 @@ bashio::log.info "Starting app"
cd /app || exit 1
container_name="${HOSTNAME//-/_}"
export HOSTNAME="${container_name}"
args=()
if bashio::config.has_value 'PORTAINER_AGENT_ARGS'; then
read -r -a args <<<"$(bashio::config 'PORTAINER_AGENT_ARGS')"