Merge pull request #2323 from alexbelgium/codex/align-and-export-container-hostname

Align Portainer Agent hostname with container name
This commit is contained in:
Alexandre
2025-12-31 11:24:29 +01:00
committed by GitHub

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')"