Skip to content

Commit 0b3dc8e

Browse files
author
gau1991
committed
Added check for HHVM unsupported systems
1 parent 22a4f73 commit 0b3dc8e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ee/cli/plugins/site_functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import getpass
1818
import glob
1919
import re
20+
import platform
2021

2122

2223
class SiteError(Exception):
@@ -604,6 +605,8 @@ def site_package_check(self, stype):
604605
"/usr/bin/wp", "WP-CLI"]]
605606

606607
if self.app.pargs.hhvm:
608+
if platform.architecture()[0] is '32bit':
609+
Log.error(self, "HHVM is not supported by 32bit system")
607610
Log.debug(self, "Setting apt_packages variable for HHVM")
608611
if not EEAptGet.is_installed(self, 'hhvm'):
609612
apt_packages = apt_packages + EEVariables.ee_hhvm

ee/cli/plugins/stack.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import pwd
2626
import grp
2727
import codecs
28+
import platform
2829
from ee.cli.plugins.stack_services import EEStackStatusController
2930
from ee.cli.plugins.stack_migrate import EEStackMigrateController
3031
from ee.cli.plugins.stack_upgrade import EEStackUpgradeController
@@ -1494,6 +1495,8 @@ def install(self, packages=[], apt_packages=[], disp_msg=True):
14941495

14951496
if self.app.pargs.hhvm:
14961497
Log.debug(self, "Setting apt packages variable for HHVM")
1498+
if platform.architecture()[0] is '32bit':
1499+
Log.error(self, "HHVM is not supported by 32bit system")
14971500
if not EEAptGet.is_installed(self, 'hhvm'):
14981501
apt_packages = apt_packages + EEVariables.ee_hhvm
14991502
else:

0 commit comments

Comments
 (0)