fix: hostname -I not supported on Arch Linux #4642
Open
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.
Update 2024-12-24
Refactored to use
if
hostname -I
is not supported, e.g. on Arch Linux.Original PR
This provides the
hostname
command used in theinstall.sh
script, which is not available by default on Arch Linux.The hostname command is used here:
coolify/scripts/install.sh
Line 545 in ef56797
Some relevant resources:
Changes
From:
coolify/scripts/install.sh
Lines 161 to 164 in ef56797
The inetutils package was added to the pacman install command for Arch Linux
Issues
Arch Linux does not ship with the
hostname
command by default (provided by inetutils). For example:Reproduction command logs
As an aside, I also tested the other OS-es, and most come with the
hostname
command available by default, except Arch and Opensuse, at least based on their docker images.