Skip to content

Commit 1151f83

Browse files
author
Marius Burkard
committed
- fix server service settings on install
1 parent 31e3081 commit 1151f83

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

install/install.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@
556556
//* Configure ISPConfig
557557
swriteln('Installing ISPConfig crontab');
558558
if($conf['cron']['installed']) {
559-
swriteln('Installing ISPConfig crontab');
560559
$inst->install_crontab();
561560
} else swriteln('[ERROR] Cron not found');
562561

@@ -584,6 +583,14 @@
584583
if($conf['nginx']['installed'] == true && $conf['nginx']['init_script'] != '') system($inst->getinitcommand($conf['nginx']['init_script'], 'restart').' &> /dev/null');
585584
if($conf['ufw']['installed'] == true && $conf['ufw']['init_script'] != '') system($inst->getinitcommand($conf['ufw']['init_script'], 'restart').' &> /dev/null');
586585

586+
//** update server services in DB
587+
$sql = "UPDATE ?? SET mail_server = '{$conf['services']['mail']}', web_server = '{$conf['services']['web']}', dns_server = '{$conf['services']['dns']}', file_server = '{$conf['services']['file']}', db_server = '{$conf['services']['db']}', proxy_server = '{$conf['services']['proxy']}', firewall_server = '$firewall_server_enabled' WHERE server_id = ?";
588+
$inst->db->query($sql, $conf['mysql']['database'].'.server', $conf['server_id']);
589+
if($conf['mysql']['master_slave_setup'] == 'y') {
590+
$inst->dbmaster->query($sql, $conf['mysql']['master_database'].'.server', $conf['server_id']);
591+
}
592+
593+
587594
//* test tRNG
588595
if($conf['tRNG']) tRNG();
589596

0 commit comments

Comments
 (0)