Skip to content

Commit 0666898

Browse files
author
Till Brehm
committed
Fixed #4236 and #4429 missing autoinstall values.
1 parent 7e41652 commit 0666898

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

docs/autoinstall_samples/autoinstall.conf_sample.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
$autoinstall['hostname'] = 'server1.example.com'; // default
66
$autoinstall['mysql_hostname'] = 'localhost'; // default: localhost
7+
$autoinstall['mysql_port'] = '3306'; // default: 3306
78
$autoinstall['mysql_root_user'] = 'root'; // default: root
89
$autoinstall['mysql_root_password'] = 'howtoforge';
910
$autoinstall['mysql_database'] = 'dbispconfig'; // default: dbispcongig
@@ -20,6 +21,7 @@
2021
$autoinstall['ssl_cert_organisation'] = 'Internet Widgits Pty Ltd';
2122
$autoinstall['ssl_cert_organisation_unit'] = 'IT department';
2223
$autoinstall['ssl_cert_common_name'] = $autoinstall['hostname'];
24+
$autoinstall['ssl_cert_email'] = 'hostmaster@'.$autoinstall['hostname'];
2325

2426
/* optional expert mode settings, needed only for expert mode */
2527
$autoinstall['mysql_ispconfig_user'] = 'ispconfig'; // default: ispconfig

docs/autoinstall_samples/autoinstall.ini.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language=en
33
install_mode=standard
44
hostname=server1.example.com
55
mysql_hostname=localhost
6+
mysql_port=3306
67
mysql_root_user=root
78
mysql_root_password=ispconfig
89
mysql_database=dbispconfig
@@ -19,6 +20,7 @@ ssl_cert_locality=Chicago
1920
ssl_cert_organisation=Internet Widgits Pty Ltd
2021
ssl_cert_organisation_unit=IT department
2122
ssl_cert_common_name=server1.example.com
23+
ssl_cert_email=hostmaster@example.com
2224

2325
[expert]
2426
mysql_ispconfig_user=ispconfig

install/lib/installer_base.lib.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,12 +1619,12 @@ public function configure_xmpp($options = '') {
16191619
// Create SSL Certificate for localhost
16201620
// Ensure no line is left blank
16211621
echo "writing new private key to 'localhost.key'\n-----\n";
1622-
$ssl_country = $this->free_query('Country Name (2 letter code)', 'AU');
1623-
$ssl_locality = $this->free_query('Locality Name (eg, city)', 'City Name');
1624-
$ssl_organisation = $this->free_query('Organization Name (eg, company)', 'Internet Widgits Pty Ltd');
1625-
$ssl_organisation_unit = $this->free_query('Organizational Unit Name (eg, section)', 'Infrastructure');
1626-
$ssl_domain = $this->free_query('Common Name (e.g. server FQDN or YOUR name)', $conf['hostname']);
1627-
$ssl_email = $this->free_query('Email Address', 'hostmaster@'.$conf['hostname']);
1622+
$ssl_country = $this->free_query('Country Name (2 letter code)', 'AU','ssl_cert_country');
1623+
$ssl_locality = $this->free_query('Locality Name (eg, city)', 'City Name','ssl_cert_locality');
1624+
$ssl_organisation = $this->free_query('Organization Name (eg, company)', 'Internet Widgits Pty Ltd','ssl_cert_organisation');
1625+
$ssl_organisation_unit = $this->free_query('Organizational Unit Name (eg, section)', 'Infrastructure','ssl_cert_organisation_unit');
1626+
$ssl_domain = $this->free_query('Common Name (e.g. server FQDN or YOUR name)', $conf['hostname'],'ssl_cert_common_name');
1627+
$ssl_email = $this->free_query('Email Address', 'hostmaster@'.$conf['hostname'],'ssl_cert_email');
16281628

16291629
$tpl = new tpl('metronome_conf_ssl.master');
16301630
$tpl->setVar('ssl_country',$ssl_country);

0 commit comments

Comments
 (0)