Prevent Directadmin to modify /etc/hosts during installation

MaXi32

Verified User
Joined
Jul 25, 2016
Messages
659
Location
The Earth
Hai, the DA installation has changed a lot. Previously, before I start directadmin installation, I will make sure that my /etc/hosts contains valid entries and I will make it read only with the following command:

chattr +i /etc/hosts

and with the above command, the new installer will halt the installation with the following error:

changing hostname: open /etc/hosts: operation not permitted

In the old installer, the installation just continues even with the same error as shown above.

Is there a way to skip this check or prevent the installer to modify /etc/hosts during installation?

Thanks.
 
I've also brought up this point in some thread.
As far as I understood this is done so the check with hostname will always be good. If a good hostname is present, it won't be touched, if not, a DA hostname will be added which can be resolved so everything can work fine.

Again, if I understood correctly.

Check this thread yourself, there it's fully explained and also on one of the last post by FLN how it definatly works.
 
I've also brought up this point in some thread.
As far as I understood this is done so the check with hostname will always be good. If a good hostname is present, it won't be touched, if not, a DA hostname will be added which can be resolved so everything can work fine.

Again, if I understood correctly.

Check this thread yourself, there it's fully explained and also on one of the last post by FLN how it definatly works.

Thanks, @Richard G. I'll look into it.
 
Back
Top