Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The Linux.pm::update_public_hostname subroutine was reworked for VCL 2.4 via VCL-637. A Linux.pm::update_hostname_file subroutine was added to update the /etc/hostname file if it exists, as is the case with CentOS 7. This subroutine is using the echo command to create the file. It would be better us use OS.pm::create_text_file for consistency.
Another improvement would be to check if the hostnamectl utility exists on the OS. If so, use it to set the hostname instead of using the hostname command.
Attachments
Issue Links
- is related to
-
VCL-637 linux updating hostname
- Resolved