Fix wrong else statements in stack_services.py

This commit is contained in:
Saša Todorović
2022-11-01 17:02:14 +01:00
committed by GitHub
parent bb981dab85
commit 6ab40e73c4

View File

@@ -286,15 +286,15 @@ class WOStackStatusController(CementBaseController):
if os.path.exists('{0}'.format(wo_system) + 'php7.4-fpm.service'): if os.path.exists('{0}'.format(wo_system) + 'php7.4-fpm.service'):
services = services + ['php7.4-fpm'] services = services + ['php7.4-fpm']
else: else:
Log.info(self, "PHP8.0-FPM is not installed") Log.info(self, "PHP7.4-FPM is not installed")
if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'): if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'):
services = services + ['php8.0-fpm'] services = services + ['php8.0-fpm']
else: else:
Log.info(self, "PHP8.1-FPM is not installed") Log.info(self, "PHP8.0-FPM is not installed")
if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'): if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'):
services = services + ['php8.1-fpm'] services = services + ['php8.1-fpm']
else: else:
Log.info(self, "PHP7.4-FPM is not installed") Log.info(self, "PHP8.1-FPM is not installed")
if pargs.php72: if pargs.php72:
if os.path.exists('{0}'.format(wo_system) + 'php7.2-fpm.service'): if os.path.exists('{0}'.format(wo_system) + 'php7.2-fpm.service'):