Alternc  latest
Alternc logiel libre pour l'hébergement
alternc.install.diff
Go to the documentation of this file.
1 diff --git a/install/alternc.install b/install/alternc.install
2 index b9691b0..2ee07b8 100644
3 --- alternc.install.squeeze
4 +++ alternc.install
5 @@ -79,7 +79,7 @@ if [ -e /etc/default/saslauthd ]; then
6  fi
7 
8  if [ -e /etc/dovecot/dovecot.conf ]; then
9 - CONFIG_FILES="$CONFIG_FILES etc/dovecot/dovecot.conf etc/dovecot/dovecot-sql.conf etc/dovecot/dovecot-dict-quota.conf"
10 + CONFIG_FILES="$CONFIG_FILES etc/dovecot/alternc-sql.conf etc/dovecot/alternc-dict-quota.conf etc/dovecot/conf.d/95_alternc.conf"
11  fi
12 
13  INSTALLED_CONFIG_TAR="/var/lib/alternc/backups/etc-installed.tar.gz"
14 @@ -317,7 +317,7 @@ if [ -x /usr/sbin/apache2 ]; then
15  fi
16 
17  # We enable dovecot SSL certificate instructions: (on wheezy we should use a new file in /etc/dovecot/conf.d/ )
18 - sed -i -e 's#^ssl_cert_file.*$#ssl_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem#' -e 's#^ssl_key_file.*$#ssl_key_file = /etc/ssl/private/ssl-cert-snakeoil.key#' /etc/dovecot/dovecot.conf
19 + ( echo "# Don't change this file, it will be overwriten by alternc.install. Change ssl parameters in a file named 99_ssl.conf instead" ; echo "ssl_cert = </etc/alternc/apache.pem" ; echo "ssl_key = </etc/alternc/apache.pem" ) >/etc/dovecot/conf.d/96_ssl.conf
20 
21  else
22  # We disable proftpd tls module
23 @@ -326,7 +326,7 @@ if [ -x /usr/sbin/apache2 ]; then
24  cp /etc/proftpd/modules.conf /etc/alternc/templates/proftpd/
25 
26  # We disable dovecot SSL certificate instructions: (on wheezy we should remove a file in /etc/dovecot/conf.d/ )
27 - sed -i -e 's#^ssl_cert_file.*$#ssl_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem#' -e 's#^ssl_key_file.*$#ssl_key_file = /etc/ssl/private/ssl-cert-snakeoil.key#' /etc/dovecot/dovecot.conf
28 + ( echo "# Don't change this file, it will be overwriten by alternc.install. Change ssl parameters in a file named 99_ssl.conf instead" ; echo "ssl_cert = </etc/ssl/certs/ssl-cert-snakeoil.pem" ; echo "ssl_key = </etc/ssl/private/ssl-cert-snakeoil.key" ) >/etc/dovecot/conf.d/96_ssl.conf
29 
30  echo "SSL not configured"
31  echo "create a certificate in /etc/alternc/apache.pem and rerun alternc.install"
32 @@ -574,9 +574,11 @@ if [ "$HAS_ROOT" != "1" ]; then
33  fi
34  fi
35 
36 -#giving vmail user read access on dovecot sql file
37 -chgrp vmail /etc/dovecot/dovecot.conf
38 -chmod g+r /etc/dovecot/dovecot.conf
39 +# giving vmail user read access on dovecot sql file
40 +chgrp vmail /etc/dovecot/alternc-sql.conf
41 +chmod g+r /etc/dovecot/alternc-sql.conf
42 +# Override some dovecot 2.0 configuration that may have happened during dovecot postinst:
43 +sed -i -e 's/^ *!include/#!include/' /etc/dovecot/conf.d/10-auth.conf
44 
45  # We force the re-computing of the DNS zones, since we may have changed the IP address (see #460)
46  /usr/bin/mysql --defaults-file="/etc/alternc/my.cnf" -B -e "update domaines set dns_action='UPDATE' WHERE gesdns=1;"