Skip to content

Comments

Add dynamic/custom hostname during installation#454

Open
dsbilling wants to merge 7 commits intofatihak:mainfrom
kilobyteno:hostname
Open

Add dynamic/custom hostname during installation#454
dsbilling wants to merge 7 commits intofatihak:mainfrom
kilobyteno:hostname

Conversation

@dsbilling
Copy link
Contributor

@dsbilling dsbilling commented Dec 8, 2025

Reworked from #435

Introduced functions to retrieve the MAC address and set the system hostname to the app name plus the last 4 characters of the MAC address. This ensures unique hostnames for each device during installation.
Introduces the -H option to allow users to specify a custom hostname during installation. If not provided, the script continues to auto-generate the hostname based on the MAC address. Updates usage instructions and argument parsing accordingly.
Enhanced the error handling in install.sh to provide specific usage instructions when required arguments for -W and -H options are missing, improving user guidance during installation.
@dsbilling
Copy link
Contributor Author

@fatihak Sorry for delayed response, here is the rework 👍🏻

Updated install.sh and README.md to allow users to skip setting the hostname by passing -H "" or -H none. Improved argument parsing and documentation to clarify the new behavior and provide usage examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant