diff --git a/install/alternc.install b/install/alternc.install index 67b2ba9a..337044e6 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -10,12 +10,7 @@ set -e -opts=`getopt "sf" $*` -if [ $? -ne 0 ]; then - echo invalid syntax: $? -fi -set -- $opts -for i; do +for i in $*; do case "$i" in -f|--force) force=1; shift;; @@ -43,7 +38,7 @@ CONFIG_FILES="etc/alternc/bureau.conf" if [ -e /etc/bind/named.conf ]; then CONFIG_FILES="$CONFIG_FILES etc/bind/templates/zone.template - etc/bind/templates/named.template etc/bind/named.conf.options" + etc/bind/templates/named.template etc/bind/named.conf etc/bind/named.conf.options" fi if [ -e /etc/courier/authdaemonrc ]; then CONFIG_FILES="$CONFIG_FILES etc/courier/authdaemonrc @@ -231,6 +226,11 @@ if [ -x /usr/sbin/apache2 ]; then s="apache2" fi if [ -e /etc/alternc/apache.pem ]; then + # We enable proftpd tls module + cat /etc/proftpd/modules.conf | sed -e 's/^#LoadModule mod_tls.c/LoadModule mod_tls.c/' > /etc/proftpd/modules.conf.alternc-new + mv /etc/proftpd/modules.conf.alternc-new /etc/proftpd/modules.conf + cp /etc/proftpd/modules.conf /etc/alternc/templates/proftpd/ + # We enable apache2 SSL : if [ ! -h /etc/apache2/mods-enabled/ssl.load ] ; then a2enmod ssl s="apache2" @@ -240,6 +240,10 @@ if [ -x /usr/sbin/apache2 ]; then s="apache2" fi else + # We disable proftpd tls module + cat /etc/proftpd/modules.conf | sed -e 's/^LoadModule mod_tls.c/#LoadModule mod_tls.c/' > /etc/proftpd/modules.conf.alternc-new + mv /etc/proftpd/modules.conf.alternc-new /etc/proftpd/modules.conf + cp /etc/proftpd/modules.conf /etc/alternc/templates/proftpd/ echo "SSL not configured" echo "create a certificate in /etc/alternc/apache.pem and rerun alternc.install" fi