Skip to content

Commit bc55aad

Browse files
author
A. Täffner
committed
added server ini config to $conf and corrected check for apps vhost enabled
1 parent c028f1b commit bc55aad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

install/update.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@
287287
*/
288288
updateDbAndIni();
289289

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+
290295
/*
291296
* Reconfigure the permisson if needed
292297
* (if this is done at client side, only this client is updated.
@@ -428,7 +433,7 @@
428433
$inst->configure_nginx();
429434
}
430435

431-
if ($conf['web']['apps_vhost_enabled'] == 'y') {
436+
if ($conf['server_config']['web']['apps_vhost_enabled'] == 'y') {
432437
//** Configure apps vhost
433438
swriteln('Configuring Apps vhost');
434439
$inst->configure_apps_vhost();

0 commit comments

Comments
 (0)