Skip to content

Commit 88f9d6a

Browse files
author
Till Brehm
committed
Merge branch '5763-autoinstall-ini-haven-t-option-for-new-question' into 'develop'
Resolve "autoinstall.ini haven't option for new question" Closes #5763 See merge request ispconfig/ispconfig3!1218
2 parents 85e4167 + 2c88f73 commit 88f9d6a

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

docs/autoinstall_samples/autoinstall.conf_sample.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
$autoinstall['ispconfig_port'] = '8080'; // default: 8080
1414
$autoinstall['ispconfig_use_ssl'] = 'y'; // y (default), n
1515
$autoinstall['ispconfig_admin_password'] = 'admin'; // default: admin
16+
$autoinstall['create_ssl_server_certs'] = 'y';
17+
$autoinstall['ignore_hostname_dns'] = 'n';
18+
$autoinstall['ispconfig_postfix_ssl_symlink'] = 'y';
19+
$autoinstall['ispconfig_pureftpd_ssl_symlink'] = 'y';
1620

1721
/* SSL Settings */
1822
$autoinstall['ssl_cert_country'] = 'AU';
@@ -52,6 +56,10 @@
5256
$autoupdate['ispconfig_port'] = '8080'; // default: 8080
5357
$autoupdate['create_new_ispconfig_ssl_cert'] = 'no'; // no (default), yes
5458
$autoupdate['reconfigure_crontab'] = 'yes'; // yes (default), no
59+
$autoupdate['create_ssl_server_certs'] = 'y';
60+
$autoupdate['ignore_hostname_dns'] = 'n';
61+
$autoupdate['ispconfig_postfix_ssl_symlink'] = 'y';
62+
$autoupdate['ispconfig_pureftpd_ssl_symlink'] = 'y';
5563

5664
/* These are for service-detection (defaulting to old behaviour where alle changes were automatically accepted) */
5765
$autoupdate['svc_detect_change_mail_server'] = 'yes'; // yes (default), no

docs/autoinstall_samples/autoinstall.ini.sample

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ http_server=apache
1212
ispconfig_port=8080
1313
ispconfig_use_ssl=y
1414
ispconfig_admin_password=admin
15+
create_ssl_server_certs=y
16+
ignore_hostname_dns=n
17+
ispconfig_postfix_ssl_symlink=y
18+
ispconfig_pureftpd_ssl_symlink=y
1519

1620
[ssl_cert]
1721
ssl_cert_country=AU
@@ -51,6 +55,10 @@ reconfigure_services=yes
5155
ispconfig_port=8080
5256
create_new_ispconfig_ssl_cert=no
5357
reconfigure_crontab=yes
58+
create_ssl_server_certs=y
59+
ignore_hostname_dns=n
60+
ispconfig_postfix_ssl_symlink=y
61+
ispconfig_pureftpd_ssl_symlink=y
5462

5563
; These are for service-detection (defaulting to old behaviour where alle changes were automatically accepted)
5664
svc_detect_change_mail_server=yes

install/install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@
582582

583583
// Create SSL certs for non-webserver(s)?
584584
if(!file_exists('/usr/local/ispconfig/interface/ssl/ispserver.crt')) {
585-
if(!$issue_tried && strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y') {
585+
if(!$issue_tried && strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y','create_ssl_server_certs')) == 'y') {
586586
$inst->make_ispconfig_ssl_cert();
587587
}
588588
} else {

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,7 +3043,7 @@ public function make_ispconfig_ssl_cert() {
30433043
exec("cat $ssl_key_file $ssl_crt_file > $ssl_pem_file; chmod 600 $ssl_pem_file");
30443044

30453045
// Extend LE SSL certs to postfix
3046-
if ($conf['postfix']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Postfix?', array('y', 'n'), 'y')) == 'y') {
3046+
if ($conf['postfix']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Postfix?', array('y', 'n'), 'y','ispconfig_postfix_ssl_symlink')) == 'y') {
30473047

30483048
// Define folder, file(s)
30493049
$cf = $conf['postfix'];
@@ -3062,7 +3062,7 @@ public function make_ispconfig_ssl_cert() {
30623062
}
30633063

30643064
// Extend LE SSL certs to pureftpd
3065-
if ($conf['pureftpd']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Pure-FTPd? Creating dhparam file may take some time.', array('y', 'n'), 'y')) == 'y') {
3065+
if ($conf['pureftpd']['installed'] == true && strtolower($this->simple_query('Symlink ISPConfig SSL certs to Pure-FTPd? Creating dhparam file may take some time.', array('y', 'n'), 'y','ispconfig_pureftpd_ssl_symlink')) == 'y') {
30663066

30673067
// Define folder, file(s)
30683068
$pureftpd_dir = '/etc/ssl/private';

install/update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548

549549
// Create SSL certs for non-webserver(s)?
550550
if(!file_exists('/usr/local/ispconfig/interface/ssl/ispserver.crt')) {
551-
if(!$issue_tried && strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y')) == 'y') {
551+
if(!$issue_tried && strtolower($inst->simple_query('Do you want to create SSL certs for your server?', array('y', 'n'), 'y','create_ssl_server_certs')) == 'y') {
552552
$inst->make_ispconfig_ssl_cert();
553553
}
554554
} else {

0 commit comments

Comments
 (0)