Skip to content

Commit 165056c

Browse files
author
vogelor
committed
fixed a bug in the autoupdater
1 parent 3bdfa35 commit 165056c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

install/autoupdate.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@
7373
//** Get distribution identifier
7474
$dist = get_distname();
7575

76+
include_once("/usr/local/ispconfig/server/lib/config.inc.php");
77+
$conf_old = $conf;
78+
unset($conf);
79+
7680
if($dist['id'] == '') die('Linux Dustribution or Version not recognized.');
7781

7882
//** Include the distribution specific installer class library and configuration
7983
if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php');
8084
include_once('dist/lib/'.$dist['id'].'.lib.php');
8185
include_once('dist/conf/'.$dist['id'].'.conf.php');
8286

83-
include_once("/usr/local/ispconfig/server/lib/config.inc.php");
84-
$conf_old = $conf;
85-
unset($conf);
86-
8787
//** Get hostname
8888
exec('hostname -f', $tmp_out);
8989
$conf['hostname'] = $tmp_out[0];
@@ -158,7 +158,6 @@
158158
if($conf['mysql']['master_slave_setup'] != 'y') {
159159
$inst->dbmaster = $inst->db;
160160
$inst->grant_master_database_rights();
161-
echo "done rights";
162161
}
163162

164163
/*

0 commit comments

Comments
 (0)