Skip to content

Commit

Permalink
remove hostname checks
Browse files Browse the repository at this point in the history
* vespa no longer starts privileged, remove old code
* the warning given here isn't really informative or useful
  • Loading branch information
arnej27959 committed Feb 29, 2024
1 parent 10563ff commit bee7575
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/start-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ if [ $# -gt 1 ]; then
exit 1
fi

# Set the hostname to the FQDN name if possible
oldhn=$(hostname)
fullhn=$(hostname -f)
if [ "${oldhn}" != "${fullhn}" ]; then
myuid=$(id -u)
if [ "${myuid}" = 0 ]; then
echo "WARNING - trying to change hostname '${oldhn}' -> '${fullhn}'"
hostname "$fullhn" || true
else
echo "WARNING - want to change hostname '${oldhn}' -> '${fullhn}' (to avoid this warning, change your setup)"
fi
fi

trap cleanup TERM INT

cleanup() {
Expand Down

0 comments on commit bee7575

Please sign in to comment.