Skip to content

Commit

Permalink
Fix info msg on debian
Browse files Browse the repository at this point in the history
  • Loading branch information
iam404 committed Jun 29, 2016
1 parent c889178 commit 35d68da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ee/cli/plugins/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@ def install(self, packages=[], apt_packages=[], disp_msg=True):
Log.info(self, "PHP already installed")

#PHP 7.0 for Debian (jessie+)
if self.app.pargs.php7:
if self.app.pargs.php7 and EEVariables.ee_platform_distro == 'debian':
if (EEVariables.ee_platform_codename == 'jessie'):
Log.debug(self, "Setting apt_packages variable for PHP 7.0")
if not EEAptGet.is_installed(self, 'php7.0-fpm') :
Expand All @@ -2294,8 +2294,8 @@ def install(self, packages=[], apt_packages=[], disp_msg=True):
Log.debug(self, "PHP 7.0 Not Available for your Distribution")
Log.info(self, "PHP 7.0 Not Available for your Distribution")


if self.app.pargs.php7:
#PHP 7.0 for Ubuntu
if self.app.pargs.php7 and not EEVariables.ee_platform_distro == 'debian':
if (EEVariables.ee_platform_codename == 'trusty' or EEVariables.ee_platform_codename == 'xenial'):
Log.debug(self, "Setting apt_packages variable for PHP 7.0")
if not EEAptGet.is_installed(self, 'php7.0-fpm') :
Expand Down

0 comments on commit 35d68da

Please sign in to comment.