Browse Source

Fix 'EEVariables' has no attribute 'ee_php5_6'

master
Prabuddha Chakraborty 9 years ago
parent
commit
c1c7ac2823
  1. 4
      ee/cli/plugins/stack.py

4
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/')

Loading…
Cancel
Save