Browse Source

Exception for git

bugfixes
gau1991 10 years ago
parent
commit
b345c9fa75
  1. 3
      ee/cli/plugins/stack.py
  2. 9
      ee/core/variables.py

3
ee/cli/plugins/stack.py

@ -209,6 +209,9 @@ class EEStackController(CementBaseController):
self.app.render((data), 'dovecot.mustache', out=ee_dovecot)
ee_dovecot.close()
# Custom Postfix configuration needed with Dovecot
if len(packages):
if any('/usr/bin/wp' == x[1] for x in packages):
EEShellExec.cmd_exec("chmod +x /usr/bin/wp")

9
ee/core/variables.py

@ -3,6 +3,7 @@ import platform
import socket
import configparser
import os
import sys
class EEVariables():
@ -19,8 +20,12 @@ class EEVariables():
ee_fqdn = socket.getfqdn()
# Get git user name and EMail
ee_user = config['user']['name']
ee_email = config['user']['email']
try:
ee_user = config['user']['name']
ee_email = config['user']['email']
except KeyError as e:
print("Unable to find GIT user name and Email")
sys.exit(1)
# EasyEngine stack installation varibales
# Nginx repo and packages

Loading…
Cancel
Save