From c1c7ac2823d9aaae0d71e4fc2c54cd90a73cf244 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 3 Feb 2016 13:33:44 +0530 Subject: [PATCH] Fix 'EEVariables' has no attribute 'ee_php5_6' --- ee/cli/plugins/stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 940be69c..05f4a410 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -855,7 +855,7 @@ class EEStackController(CementBaseController): EEService.restart_service(self, 'php5-fpm') - if set(EEVariables.ee_php5_6).issubset(set(apt_packages)): + if EEVariables.ee_platform_codename == 'trusty' and set(EEVariables.ee_php5_6).issubset(set(apt_packages)): # Create log directories if not os.path.exists('/var/log/php/5.6/'): Log.debug(self, 'Creating directory /var/log/php/5.6/') @@ -982,7 +982,7 @@ class EEStackController(CementBaseController): EEService.restart_service(self, 'php5.6-fpm') #preconfiguration for php7.0 - if set(EEVariables.ee_php7_0).issubset(set(apt_packages)): + if EEVariables.ee_platform_codename == 'trusty' and set(EEVariables.ee_php7_0).issubset(set(apt_packages)): # Create log directories if not os.path.exists('/var/log/php/7.0/'): Log.debug(self, 'Creating directory /var/log/php/7.0/')