Skip to content

Commit 5ce5edb

Browse files
author
Till Brehm
committed
Added logging type detection for the other distributions.
1 parent 4bce508 commit 5ce5edb

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,12 @@ public function configure_apache()
722722
$tpl = new tpl('apache_ispconfig.conf.master');
723723
$tpl->setVar('apache_version',getapacheversion());
724724

725+
if($this->is_update == true) {
726+
$tpl->setVar('logging',get_logging_state());
727+
} else {
728+
$tpl->setVar('logging','yes');
729+
}
730+
725731
$records = $this->db->queryAllRecords("SELECT * FROM ?? WHERE server_id = ? AND virtualhost = 'y'", $conf['mysql']['master_database'] . '.server_ip', $conf['server_id']);
726732
$ip_addresses = array();
727733

install/dist/lib/gentoo.lib.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,12 @@ public function configure_apache()
603603
$tpl = new tpl('apache_ispconfig.conf.master');
604604
$tpl->setVar('apache_version',getapacheversion());
605605

606+
if($this->is_update == true) {
607+
$tpl->setVar('logging',get_logging_state());
608+
} else {
609+
$tpl->setVar('logging','yes');
610+
}
611+
606612
$records = $this->db->queryAllRecords("SELECT * FROM ?? WHERE server_id = ? AND virtualhost = 'y'", $conf['mysql']['master_database'] . '.server_ip', $conf['server_id']);
607613
$ip_addresses = array();
608614

install/dist/lib/opensuse.lib.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,12 @@ public function configure_apache()
691691
$tpl = new tpl('apache_ispconfig.conf.master');
692692
$tpl->setVar('apache_version',getapacheversion());
693693

694+
if($this->is_update == true) {
695+
$tpl->setVar('logging',get_logging_state());
696+
} else {
697+
$tpl->setVar('logging','yes');
698+
}
699+
694700
$records = $this->db->queryAllRecords("SELECT * FROM ?? WHERE server_id = ? AND virtualhost = 'y'", $conf['mysql']['master_database'] . '.server_ip', $conf['server_id']);
695701
$ip_addresses = array();
696702

0 commit comments

Comments
 (0)