From 23cc3a21b3e8a2d41d3c68f2c6993badd7bc145a Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 17 Feb 2016 17:04:49 +0530 Subject: [PATCH] php7 on update --- ee/cli/plugins/site.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/ee/cli/plugins/site.py b/ee/cli/plugins/site.py index 55ad93ad..7892e648 100644 --- a/ee/cli/plugins/site.py +++ b/ee/cli/plugins/site.py @@ -1256,7 +1256,27 @@ class EESiteUpdateController(CementBaseController): data['pagespeed'] = False pagespeed = False - if pargs.pagespeed=="on" or pargs.hhvm=="on" or pargs.letsencrypt=="on": + if pargs.pagespeed=="on" or pargs.hhvm=="on" or pargs.letsencrypt=="on" or pargs.php7=="on": + if pargs.php7 == "on": + if (not pargs.experimental): + Log.info(self, "PHP7.0 is experimental feature and it may not" + " work with all plugins of your site.\nYou can " + "disable it by passing --php7=off later.\nDo you wish" + " to enable PHP now for {0}?".format(ee_domain)) + + # Check prompt + check_prompt = input("Type \"y\" to continue [n]:") + if check_prompt != "Y" and check_prompt != "y": + Log.info(self, "Not using PHP 7.0 for site") + data['php7'] = False + php7 = False + else: + data['php7'] = True + php7 = True + else: + data['php7'] = True + php7 = True + if pargs.hhvm == "on": if (not pargs.experimental): Log.info(self, "HHVM is experimental feature and it may not"