Browse Source

Added --php7 command

master
Prabuddha Chakraborty 9 years ago
parent
commit
7229b020b4
  1. 5
      ee/cli/plugins/stack.py

5
ee/cli/plugins/stack.py

@ -62,6 +62,8 @@ class EEStackController(CementBaseController):
dict(help='Install Nginx mainline stack', action='store_true')),
(['--php'],
dict(help='Install PHP stack', action='store_true')),
(['--php7'],
dict(help='Install PHP 7.0 stack', action='store_true')),
(['--mysql'],
dict(help='Install MySQL stack', action='store_true')),
(['--hhvm'],
@ -178,7 +180,8 @@ class EEStackController(CementBaseController):
Log.debug(self, 'Adding ppa of Nginx-mainline')
EERepo.add_key(self, EEVariables.ee_nginx_key)
if set(EEVariables.ee_php).issubset(set(apt_packages)):
if (set(EEVariables.ee_php).issubset(set(apt_packages)) or set(EEVariables.ee_php7_0).issubset(set(apt_packages))\
or set(EEVariables.ee_php5_6).issubset(set(apt_packages))):
Log.info(self, "Adding repository for PHP, please wait...")
# Add repository for php
if EEVariables.ee_platform_distro == 'debian':

Loading…
Cancel
Save