Merge pull request #475 from stodorovic/fix-services-order
Fix wrong else statements in stack_services.py
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user