|
177 | 177 | if (!$inst->get_php_version()) die('ISPConfig requieres PHP '.$inst->min_php."\n"); |
178 | 178 | $inst->is_update = true; |
179 | 179 |
|
180 | | -//** Detect the installed applications |
181 | | -$inst->find_installed_apps(); |
182 | | - |
183 | 180 | echo "This application will update ISPConfig 3 on your server.\n\n"; |
184 | 181 |
|
185 | 182 | //* Make a backup before we start the update |
|
304 | 301 | } |
305 | 302 | //} |
306 | 303 |
|
| 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 | + |
307 | 316 | //** Shall the services be reconfigured during update |
308 | 317 | $reconfigure_services_answer = $inst->simple_query('Reconfigure Services?', array('yes', 'no', 'selected'), 'yes','reconfigure_services'); |
309 | 318 |
|
|
323 | 332 | $inst->configure_mailman('update'); |
324 | 333 | } |
325 | 334 |
|
326 | | - //* Configure Jailkit |
327 | | - if($inst->reconfigure_app('Jailkit', $reconfigure_services_answer)) { |
328 | | - swriteln('Configuring Jailkit'); |
329 | | - $inst->configure_jailkit(); |
330 | | - } |
331 | | - |
332 | 335 | if($conf['dovecot']['installed'] == true && $inst->reconfigure_app('Dovecot', $reconfigure_services_answer)) { |
333 | 336 | //* Configure dovecot |
334 | 337 | swriteln('Configuring Dovecot'); |
|
407 | 410 | swriteln('Configuring Apps vhost'); |
408 | 411 | $inst->configure_apps_vhost(); |
409 | 412 | } |
| 413 | + |
| 414 | + //* Configure Jailkit |
| 415 | + if($inst->reconfigure_app('Jailkit', $reconfigure_services_answer)) { |
| 416 | + swriteln('Configuring Jailkit'); |
| 417 | + $inst->configure_jailkit(); |
| 418 | + } |
| 419 | + |
410 | 420 | } |
411 | 421 |
|
412 | 422 | if($conf['services']['xmpp'] && $inst->reconfigure_app('XMPP', $reconfigure_services_answer)) { |
|
0 commit comments