Repository navigation
Don't abort install.sh silently when DNS doesn't resolve yet - #125
Merged
liamdevss merged 1 commit intoNov 29, 2026
Merged
Conversation
|
Everyone in this pull request has signed the CLA. Thanks! |
Contributor
Author
|
I have read the ServerOS CLA and I agree to its terms |
liamdevss
approved these changes
Nov 29, 2026
liamdevss
left a comment
Contributor
There was a problem hiding this comment.
Looks good!
Will fix CI errors soon.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds
|| trueto thegetent ahostsv4pipeline incheck_dns()indocker/self-hosted/install.shso an unresolved domain prints a warning and continues instead of exiting silently.Why
install.shruns withset -euo pipefail. When either the panel domain or the wildcard check (serveros-check-$RANDOM.$DOMAIN) doesn't resolve yet,getent ahostsv4exits with code 2 and stderr is redirected to/dev/null. Withpipefail, that fails thegetent ... | awk ...assignment and aborts the script silently right after Docker is installed, before theif [ -z "$found" ]warning is ever reached.AI helped diagnose the bug and draft this fix; I reviewed the diff and tested it on my own server.
How I tested it
exit=2ongetent ahostsv4 serveros-check-*.<domain>) on a Linux VPS withbash -xbash -n docker/self-hosted/install.shcheck_dnsunderset -euo pipefailwith unresolved, mismatched, and matching DNS resultsinstall.shon my Linux VPS and confirmed it warns on missing wildcard DNS and completes the installChecklist