Browse Source

Tweaked mail installation

bugfixes
gau1991 10 years ago
parent
commit
f458f9f982
  1. 61
      ee/cli/plugins/stack.py
  2. 4
      ee/core/variables.py

61
ee/cli/plugins/stack.py

@ -763,15 +763,17 @@ class EEStackController(CementBaseController):
self.app.pargs.postfix = True self.app.pargs.postfix = True
if self.app.pargs.admin: if self.app.pargs.admin:
pass self.app.parge.adminer = True
# apt_packages = apt_packages + EEVariables.ee_nginx self.app.parge.phpmyadmin = True
self.app.parge.utils = True
if self.app.pargs.mail: if self.app.pargs.mail:
self.app.pargs.nginx = True self.app.pargs.nginx = True
self.app.pargs.php = True self.app.pargs.php = True
self.app.pargs.mysql = True self.app.pargs.mysql = True
self.app.pargs.postfix = True self.app.pargs.postfix = True
if not EEAptGet.is_installed('dovecot'): if not EEAptGet.is_installed('dovecot-core'):
self.app.log.debug("Setting apt_packages variable for mail") self.app.log.debug("Setting apt_packages variable for mail")
apt_packages = apt_packages + EEVariables.ee_mail apt_packages = apt_packages + EEVariables.ee_mail
packages = packages + [["https://github.com/opensolutions/" packages = packages + [["https://github.com/opensolutions/"
@ -885,16 +887,27 @@ class EEStackController(CementBaseController):
packages = [] packages = []
if self.app.pargs.web: if self.app.pargs.web:
self.app.log.debug("Removing apt_packages variable of Nginx " self.app.pargs.nginx = True
",PHP,MySQL") self.app.pargs.php = True
apt_packages = (apt_packages + EEVariables.ee_nginx + self.app.pargs.mysql = True
EEVariables.ee_php + EEVariables.ee_mysql) self.app.pargs.wpcli = True
self.app.pargs.postfix = True
if self.app.pargs.admin: if self.app.pargs.admin:
pass self.app.parge.adminer = True
# apt_packages = apt_packages + EEVariables.ee_nginx self.app.parge.phpmyadmin = True
self.app.parge.utils = True
if self.app.pargs.mail: if self.app.pargs.mail:
pass self.app.log.debug("Removing mail server packages")
# apt_packages = apt_packages + EEVariables.ee_nginx apt_packages = apt_packages + EEVariables.ee_mail
apt_packages = apt_packages + EEVariables.ee_mailscanner
packages = packages + ["/var/www/22222/htdocs/vimbadmin",
"/var/www/roundcubemail"]
if EEShellExec.cmd_exec("mysqladmin ping"):
EEMysql.execute("drop database vimbadmin")
EEMysql.execute("drop database roundcubemail")
if self.app.pargs.nginx: if self.app.pargs.nginx:
self.app.log.debug("Removing apt_packages variable of Nginx") self.app.log.debug("Removing apt_packages variable of Nginx")
apt_packages = apt_packages + EEVariables.ee_nginx apt_packages = apt_packages + EEVariables.ee_nginx
@ -938,15 +951,27 @@ class EEStackController(CementBaseController):
packages = [] packages = []
if self.app.pargs.web: if self.app.pargs.web:
self.app.log.debug("Purge Nginx,PHP,MySQL") self.app.pargs.nginx = True
apt_packages = (apt_packages + EEVariables.ee_nginx self.app.pargs.php = True
+ EEVariables.ee_php + EEVariables.ee_mysql) self.app.pargs.mysql = True
self.app.pargs.wpcli = True
self.app.pargs.postfix = True
if self.app.pargs.admin: if self.app.pargs.admin:
pass self.app.parge.adminer = True
# apt_packages = apt_packages + EEVariables.ee_nginx self.app.parge.phpmyadmin = True
self.app.parge.utils = True
if self.app.pargs.mail: if self.app.pargs.mail:
pass self.app.log.debug("Removing mail server packages")
# apt_packages = apt_packages + EEVariables.ee_nginx apt_packages = apt_packages + EEVariables.ee_mail
apt_packages = apt_packages + EEVariables.ee_mailscanner
packages = packages + ["/var/www/22222/htdocs/vimbadmin",
"/var/www/roundcubemail"]
if EEShellExec.cmd_exec("mysqladmin ping"):
EEMysql.execute("drop database vimbadmin")
EEMysql.execute("drop database roundcubemail")
if self.app.pargs.nginx: if self.app.pargs.nginx:
self.app.log.debug("Purge apt_packages variable of Nginx") self.app.log.debug("Purge apt_packages variable of Nginx")
apt_packages = apt_packages + EEVariables.ee_nginx apt_packages = apt_packages + EEVariables.ee_nginx

4
ee/core/variables.py

@ -79,8 +79,8 @@ class EEVariables():
# Mailscanner repo and packages # Mailscanner repo and packages
ee_mailscanner_repo = () ee_mailscanner_repo = ()
ee_mailscanner = ["amavisd-new", "spamassassin", "clamav", "clamav-daemon", ee_mailscanner = ["amavisd-new", "spamassassin", "clamav", "clamav-daemon",
"arj", "zoo", "nomarch", "cpio", "lzop", "arj", "zoo", "nomarch", "lzop", "cabextract", "p7zip",
"cabextract", "p7zip", "rpm", "unrar-free"] "rpm", "unrar-free"]
# Repo path # Repo path
ee_repo_file = "ee-repo.list" ee_repo_file = "ee-repo.list"

Loading…
Cancel
Save