Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-896

Improve method to set Linux hostname

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.5
    • vcld (backend)
    • 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

          Activity

            People

              arkurth Andrew Kurth
              arkurth Andrew Kurth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: