Ignore a bad id command to allow docker

Signed-off-by: Quentin Boswank <qubos@outlook.de>
This commit is contained in:
Quentin Boswank 2024-02-05 16:20:18 +01:00 committed by Chris Packham
parent ba17d355d3
commit aa6a6c3a34

View File

@ -264,7 +264,7 @@ fi
# Good, now grab a bit of informations on the system we're being run on, # Good, now grab a bit of informations on the system we're being run on,
# just in case something goes awok, and it's not our fault: # just in case something goes awok, and it's not our fault:
CT_SYS_USER=$(id -un) CT_SYS_USER=$(id -un 2>/dev/null || echo "unknown")
CT_SYS_HOSTNAME=$(hostname -f 2>/dev/null || true) CT_SYS_HOSTNAME=$(hostname -f 2>/dev/null || true)
# Hmmm. Some non-DHCP-enabled machines do not have an FQDN... Fall back to node name. # Hmmm. Some non-DHCP-enabled machines do not have an FQDN... Fall back to node name.
CT_SYS_HOSTNAME="${CT_SYS_HOSTNAME:-$(uname -n)}" CT_SYS_HOSTNAME="${CT_SYS_HOSTNAME:-$(uname -n)}"