Andy Kurth created VCL-896:
------------------------------

             Summary: Improve method to set Linux hostname
                 Key: VCL-896
                 URL: https://issues.apache.org/jira/browse/VCL-896
             Project: VCL
          Issue Type: Improvement
          Components: vcld (backend)
            Reporter: Andy Kurth
            Assignee: Andy Kurth
             Fix For: 2.5


The {{Linux.pm::update_public_hostname}} subroutine was reworked for VCL 2.4 
via [VCL-637|https://issues.apache.org/jira/browse/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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to