| |
@@ -1,5 +1,5 @@
|
| |
# --- BEGIN COPYRIGHT BLOCK ---
|
| |
- # Copyright (C) 2016 Red Hat, Inc.
|
| |
+ # Copyright (C) 2019 Red Hat, Inc.
|
| |
# Copyright (C) 2019 William Brown <william@blackhats.net.au>
|
| |
# All rights reserved.
|
| |
#
|
| |
@@ -240,7 +240,7 @@
|
| |
# Set the defaults
|
| |
general = {'config_version': 2, 'full_machine_name': socket.getfqdn(),
|
| |
'strict_host_checking': True, 'selinux': True, 'systemd': ds_paths.with_systemd,
|
| |
- 'defaults': '999999999'}
|
| |
+ 'defaults': '999999999', 'start': True}
|
| |
|
| |
slapd = {'self_sign_cert_valid_months': 24,
|
| |
'group': ds_paths.group,
|
| |
@@ -478,6 +478,19 @@
|
| |
else:
|
| |
break
|
| |
|
| |
+ # Start the instance?
|
| |
+ while 1:
|
| |
+ val = input('\nDo you want to start the instance after the installation? [yes]: ').rstrip().lower()
|
| |
+ if val == '' or val == 'yes' or val == 'y':
|
| |
+ # Default behaviour
|
| |
+ break
|
| |
+ elif val == "no" or val == 'n':
|
| |
+ general['start'] = False
|
| |
+ break
|
| |
+ else:
|
| |
+ print('Invalid value, please use \"yes\" or \"no\"')
|
| |
+ continue
|
| |
+
|
| |
# Are you ready?
|
| |
while 1:
|
| |
val = input('\nAre you ready to install? [no]: ').rstrip().lower()
|
| |
Bug description: When I add an additional instance to my server,
an error is displayed at the end of the installation and
the LDAPS port is not listening.
Fix description: Make interactive installation process
general["start"] argument.
https://pagure.io/389-ds-base/issue/50263
Reviewed by: ?