Skip to content

Commit e50909b

Browse files
author
Till Brehm
committed
Fixes #4909 Custom ISPConfig admin password not set, except Debian and Ubuntu
1 parent 1d79141 commit e50909b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,11 @@ public function install_ispconfig()
11511151
$command = "chmod +x $install_dir/server/scripts/*.sh";
11521152
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
11531153

1154+
if ($this->install_ispconfig_interface == true && isset($conf['interface_password']) && $conf['interface_password']!='admin') {
1155+
$sql = "UPDATE sys_user SET passwort = md5(?) WHERE username = 'admin';";
1156+
$this->db->query($sql, $conf['interface_password']);
1157+
}
1158+
11541159
if($conf['apache']['installed'] == true && $this->install_ispconfig_interface == true){
11551160
//* Copy the ISPConfig vhost for the controlpanel
11561161
// TODO: These are missing! should they be "vhost_dist_*_dir" ?

install/dist/lib/gentoo.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,11 @@ public function install_ispconfig()
10781078
$command = "chmod +x $install_dir/server/scripts/*.sh";
10791079
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
10801080

1081+
if ($this->install_ispconfig_interface == true && isset($conf['interface_password']) && $conf['interface_password']!='admin') {
1082+
$sql = "UPDATE sys_user SET passwort = md5(?) WHERE username = 'admin';";
1083+
$this->db->query($sql, $conf['interface_password']);
1084+
}
1085+
10811086
if($conf['apache']['installed'] == true && $this->install_ispconfig_interface == true){
10821087
//* Copy the ISPConfig vhost for the controlpanel
10831088
$content = $this->get_template_file("apache_ispconfig.vhost", true);

install/dist/lib/opensuse.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,11 @@ public function install_ispconfig()
11721172
$command = "chmod +x $install_dir/server/scripts/*.sh";
11731173
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
11741174

1175+
if ($this->install_ispconfig_interface == true && isset($conf['interface_password']) && $conf['interface_password']!='admin') {
1176+
$sql = "UPDATE sys_user SET passwort = md5(?) WHERE username = 'admin';";
1177+
$this->db->query($sql, $conf['interface_password']);
1178+
}
1179+
11751180
if($conf['apache']['installed'] == true && $this->install_ispconfig_interface == true){
11761181
//* Copy the ISPConfig vhost for the controlpanel
11771182
// TODO: These are missing! should they be "vhost_dist_*_dir" ?

0 commit comments

Comments
 (0)