Browse Source

php 5.6 + php7

master
Prabuddha Chakraborty 9 years ago
parent
commit
8c1517ce8d
  1. 6
      ee/cli/plugins/site_functions.py

6
ee/cli/plugins/site_functions.py

@ -720,12 +720,12 @@ def site_package_check(self, stype):
if self.app.pargs.php7 and stype in [ 'mysql', 'wp', 'wpsubdir', 'wpsubdomain']:
if EEVariables.ee_platform_codename == 'trusty':
Log.debug(self, "Setting apt_packages variable for PHP 7.0")
if not EEAptGet.is_installed(self, 'php7.0-fpm'):
apt_packages = apt_packages + EEVariables.ee_php7_0 + EEVariables.ee_php_extra
Log.debug(self, "Setting apt_packages variable for PHP 5.6")
if not EEAptGet.is_installed(self, 'php5.6-fpm'):
apt_packages = apt_packages + EEVariables.ee_php5_6 + EEVariables.ee_php_extra
Log.debug(self, "Setting apt_packages variable for PHP 7.0")
if not EEAptGet.is_installed(self, 'php7.0-fpm'):
apt_packages = apt_packages + EEVariables.ee_php7_0 + EEVariables.ee_php_extra
else:
Log.warn(self, "PHP 7.0 not available for your system.")
Log.info(self,"Creating site with PHP 5.6")

Loading…
Cancel
Save