Skip to content

Commit cffef25

Browse files
author
Florian Schaal
committed
fixed reconfigure services during update
1 parent 52e1a98 commit cffef25

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

install/update.php

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@
177177
if (!$inst->get_php_version()) die('ISPConfig requieres PHP '.$inst->min_php."\n");
178178
$inst->is_update = true;
179179

180-
//** Detect the installed applications
181-
$inst->find_installed_apps();
182-
183180
echo "This application will update ISPConfig 3 on your server.\n\n";
184181

185182
//* Make a backup before we start the update
@@ -304,6 +301,18 @@
304301
}
305302
//}
306303

304+
//** Detect the installed applications
305+
$inst->find_installed_apps();
306+
307+
$conf['services']['mail'] = $conf['postfix']['installed'];
308+
if ($conf['powerdns']['installed'] || $conf['bind']['installed'] || $conf['mydns']['installed']) $conf['services']['dns'] = true;
309+
if ($conf['apache']['installed'] || $conf['nginx']['installed']) $conf['services']['web'] = true;
310+
$conf['services']['xmpp'] = $conf['xmpp']['installed'];;
311+
if ($conf['ufw']['installed'] || $conf['firewall']['installed']) $conf['services']['firewall'] = true;
312+
$conf['services']['vserver'] = $conf['services']['vserver'];
313+
$conf['services']['db'] = true;
314+
315+
307316
//** Shall the services be reconfigured during update
308317
$reconfigure_services_answer = $inst->simple_query('Reconfigure Services?', array('yes', 'no', 'selected'), 'yes','reconfigure_services');
309318

@@ -323,12 +332,6 @@
323332
$inst->configure_mailman('update');
324333
}
325334

326-
//* Configure Jailkit
327-
if($inst->reconfigure_app('Jailkit', $reconfigure_services_answer)) {
328-
swriteln('Configuring Jailkit');
329-
$inst->configure_jailkit();
330-
}
331-
332335
if($conf['dovecot']['installed'] == true && $inst->reconfigure_app('Dovecot', $reconfigure_services_answer)) {
333336
//* Configure dovecot
334337
swriteln('Configuring Dovecot');
@@ -407,6 +410,13 @@
407410
swriteln('Configuring Apps vhost');
408411
$inst->configure_apps_vhost();
409412
}
413+
414+
//* Configure Jailkit
415+
if($inst->reconfigure_app('Jailkit', $reconfigure_services_answer)) {
416+
swriteln('Configuring Jailkit');
417+
$inst->configure_jailkit();
418+
}
419+
410420
}
411421

412422
if($conf['services']['xmpp'] && $inst->reconfigure_app('XMPP', $reconfigure_services_answer)) {

0 commit comments

Comments
 (0)