diff --git a/wo/cli/plugins/stack_services.py b/wo/cli/plugins/stack_services.py index 75abfbe..7235972 100644 --- a/wo/cli/plugins/stack_services.py +++ b/wo/cli/plugins/stack_services.py @@ -28,6 +28,13 @@ class WOStackStatusController(CementBaseController): pargs.netdata = True pargs.ufw = True + if pargs.php: + if self.app.config.has_section('php'): + config_php_ver = self.app.config.get( + 'php', 'version') + current_php = config_php_ver.replace(".", "") + setattr(self.app.pargs, 'php{0}'.format(current_php), True) + if pargs.nginx: if os.path.exists('{0}'.format(wo_system) + 'nginx.service'): services = services + ['nginx'] @@ -99,6 +106,13 @@ class WOStackStatusController(CementBaseController): pargs.php = True pargs.mysql = True + if pargs.php: + if self.app.config.has_section('php'): + config_php_ver = self.app.config.get( + 'php', 'version') + current_php = config_php_ver.replace(".", "") + setattr(self.app.pargs, 'php{0}'.format(current_php), True) + if pargs.nginx: if os.path.exists('{0}'.format(wo_system) + 'nginx.service'): services = services + ['nginx'] @@ -171,6 +185,13 @@ class WOStackStatusController(CementBaseController): pargs.mysql = True pargs.netdata = True + if pargs.php: + if self.app.config.has_section('php'): + config_php_ver = self.app.config.get( + 'php', 'version') + current_php = config_php_ver.replace(".", "") + setattr(self.app.pargs, 'php{0}'.format(current_php), True) + if pargs.nginx: if os.path.exists('{0}'.format(wo_system) + 'nginx.service'): services = services + ['nginx'] @@ -321,6 +342,13 @@ class WOStackStatusController(CementBaseController): pargs.mysql = True pargs.fail2ban = True + if pargs.php: + if self.app.config.has_section('php'): + config_php_ver = self.app.config.get( + 'php', 'version') + current_php = config_php_ver.replace(".", "") + setattr(self.app.pargs, 'php{0}'.format(current_php), True) + if pargs.nginx: if os.path.exists('{0}'.format(wo_system) + 'nginx.service'): services = services + ['nginx']