|
287 | 287 | */ |
288 | 288 | updateDbAndIni(); |
289 | 289 |
|
| 290 | +//** read server config from db into $conf['server_config'] |
| 291 | +$tmp = $inst->db->queryOneRecord("SELECT config FROM ?? WHERE server_id = ?", $conf["mysql"]["database"] . '.server', $conf['server_id']); |
| 292 | +$conf['server_config'] = ini_to_array(stripslashes($tmp['config'])); |
| 293 | +unset($tmp); |
| 294 | + |
290 | 295 | /* |
291 | 296 | * Reconfigure the permisson if needed |
292 | 297 | * (if this is done at client side, only this client is updated. |
|
428 | 433 | $inst->configure_nginx(); |
429 | 434 | } |
430 | 435 |
|
431 | | - //** Configure apps vhost |
432 | | - swriteln('Configuring Apps vhost'); |
433 | | - $inst->configure_apps_vhost(); |
434 | | - } |
| 436 | + if ($conf['server_config']['web']['apps_vhost_enabled'] == 'y') { |
| 437 | + //** Configure apps vhost |
| 438 | + swriteln('Configuring Apps vhost'); |
| 439 | + $inst->configure_apps_vhost(); |
| 440 | + } else swriteln('Skipping config of Apps vhost'); |
| 441 | + } |
435 | 442 |
|
436 | | - //* Configure Jailkit |
437 | | - if($inst->reconfigure_app('Jailkit', $reconfigure_services_answer)) { |
438 | | - swriteln('Configuring Jailkit'); |
439 | | - $inst->configure_jailkit(); |
440 | | - } |
441 | | - |
| 443 | + //* Configure Jailkit |
| 444 | + if($inst->reconfigure_app('Jailkit', $reconfigure_services_answer)) { |
| 445 | + swriteln('Configuring Jailkit'); |
| 446 | + $inst->configure_jailkit(); |
442 | 447 | } |
443 | 448 |
|
| 449 | + } |
| 450 | + |
444 | 451 | if($conf['services']['xmpp'] && $inst->reconfigure_app('XMPP', $reconfigure_services_answer)) { |
445 | 452 | //** Configure Metronome XMPP |
446 | 453 | $inst->configure_xmpp('dont-create-certs'); |
|
0 commit comments