Browse Source

Added check for HHVM unsupported systems

stable
gau1991 10 years ago
parent
commit
0b3dc8e12b
  1. 3
      ee/cli/plugins/site_functions.py
  2. 3
      ee/cli/plugins/stack.py

3
ee/cli/plugins/site_functions.py

@ -17,6 +17,7 @@ import sys
import getpass
import glob
import re
import platform
class SiteError(Exception):
@ -604,6 +605,8 @@ def site_package_check(self, stype):
"/usr/bin/wp", "WP-CLI"]]
if self.app.pargs.hhvm:
if platform.architecture()[0] is '32bit':
Log.error(self, "HHVM is not supported by 32bit system")
Log.debug(self, "Setting apt_packages variable for HHVM")
if not EEAptGet.is_installed(self, 'hhvm'):
apt_packages = apt_packages + EEVariables.ee_hhvm

3
ee/cli/plugins/stack.py

@ -25,6 +25,7 @@ import os
import pwd
import grp
import codecs
import platform
from ee.cli.plugins.stack_services import EEStackStatusController
from ee.cli.plugins.stack_migrate import EEStackMigrateController
from ee.cli.plugins.stack_upgrade import EEStackUpgradeController
@ -1494,6 +1495,8 @@ class EEStackController(CementBaseController):
if self.app.pargs.hhvm:
Log.debug(self, "Setting apt packages variable for HHVM")
if platform.architecture()[0] is '32bit':
Log.error(self, "HHVM is not supported by 32bit system")
if not EEAptGet.is_installed(self, 'hhvm'):
apt_packages = apt_packages + EEVariables.ee_hhvm
else:

Loading…
Cancel
Save