From 7229b020b4721ba2ee712cd1d0a998c8c6704ef1 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Tue, 2 Feb 2016 19:20:41 +0530 Subject: [PATCH] Added --php7 command --- ee/cli/plugins/stack.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 5653e56d..fc0fc9dd 100644 --- a/ee/cli/plugins/stack.py +++ b/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':