mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
apache: Write hostname into configuration at boot time
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -57,15 +57,6 @@ int writehostsfiles(void)
|
||||
findkey(kv, "DOMAINNAME", domainname);
|
||||
freekeyvalues(kv);
|
||||
|
||||
if (!(file = fopen(CONFIG_ROOT "/main/hostname.conf", "w")))
|
||||
{
|
||||
sprintf (message, _("Unable to write %s/main/hostname.conf"), CONFIG_ROOT);
|
||||
errorbox(message);
|
||||
return 0;
|
||||
}
|
||||
fprintf(file, "ServerName %s.%s\n", hostname,domainname);
|
||||
fclose(file);
|
||||
|
||||
if (!(file = fopen(CONFIG_ROOT "/main/hosts", "r")))
|
||||
{
|
||||
errorbox(_("Unable to open main hosts file."));
|
||||
|
||||
Reference in New Issue
Block a user