Browse Source

Improved messaging

bugfixes
gau1991 10 years ago
parent
commit
fbad8e7bb2
  1. 6
      ee/cli/plugins/info.py
  2. 4
      ee/core/variables.py

6
ee/cli/plugins/info.py

@ -174,19 +174,19 @@ class EEInfoController(CementBaseController):
if EEAptGet.is_installed(self, 'nginx-common'):
self.info_nginx()
else:
print("Nginx is not installed")
Log.error(self, "Nginx is not installed")
if self.app.pargs.php:
if EEAptGet.is_installed(self, 'php5-fpm'):
self.info_php()
else:
print("PHP5 is installed")
Log.error("PHP5 is not installed")
if self.app.pargs.mysql:
if EEShellExec.cmd_exec(self, "mysqladmin ping"):
self.info_mysql()
else:
print("MySQL is not installed")
Log.error("MySQL is not installed")
def load(app):

4
ee/core/variables.py

@ -44,8 +44,8 @@ class EEVariables():
ee_user = config['user']['name']
ee_email = config['user']['email']
except Exception as e:
print("Unable to find GIT user name and Email")
sys.exit(1)
ee_user = input("Enter username for Git:")
ee_email = input("Enter email for Git:")
# Get System RAM and SWAP details
ee_ram = psutil.virtual_memory().total / (1024 * 1024)

Loading…
Cancel
Save