Merge pull request #475 from stodorovic/fix-services-order

Fix wrong else statements in stack_services.py
This commit is contained in:
VirtuBox
2022-11-03 11:26:33 +01:00
committed by GitHub

View File

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