From 8dad9375532205878838dbd2dea9ae365964250f Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Mon, 7 Nov 2022 17:50:44 +0300 Subject: [PATCH] fix: flex-linux-setup prompts --- flex-linux-setup/flex_linux_setup/flex_setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flex-linux-setup/flex_linux_setup/flex_setup.py b/flex-linux-setup/flex_linux_setup/flex_setup.py index 85d947a66..e568493bf 100644 --- a/flex-linux-setup/flex_linux_setup/flex_setup.py +++ b/flex-linux-setup/flex_linux_setup/flex_setup.py @@ -687,7 +687,7 @@ def prompt_for_installation(): if not os.path.exists(os.path.join(httpd_installer.server_root, 'admin')): prompt_admin_ui_install = input("Install Admin UI [Y/n]: ") - if prompt_admin_ui_install and prompt_admin_ui_install.lower().startswith('y'): + if not prompt_admin_ui_install.lower().startswith('n'): install_components['admin_ui'] = True else: print("Admin UI is allready installed on this system") @@ -695,14 +695,14 @@ def prompt_for_installation(): if not os.path.exists(os.path.join(Config.jetty_base, 'casa')): prompt_casa_install = input("Install Casa [Y/n]: ") - if prompt_casa_install and prompt_casa_install.lower().startswith('y'): + if not prompt_casa_install.lower().startswith('n'): install_components['casa'] = True else: print("Casa is allready installed on this system") install_components['casa'] = False prompt_gluu_passwurd_api_keystore = input("Generate Gluu Passwurd API Keystore [Y/n]: ") - if prompt_gluu_passwurd_api_keystore.lower().startswith('y'): + if not prompt_gluu_passwurd_api_keystore.lower().startswith('n'): argsp.gluu_passwurd_cert = True if not (install_components['casa'] or install_components['admin_ui'] or argsp.gluu_passwurd_cert):