alternc.install proftpd module tls management
This commit is contained in:
parent
20053c90f0
commit
7d711eabcf
|
@ -10,12 +10,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
opts=`getopt "sf" $*`
|
for i in $*; do
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo invalid syntax: $?
|
|
||||||
fi
|
|
||||||
set -- $opts
|
|
||||||
for i; do
|
|
||||||
case "$i" in
|
case "$i" in
|
||||||
-f|--force)
|
-f|--force)
|
||||||
force=1; shift;;
|
force=1; shift;;
|
||||||
|
@ -43,7 +38,7 @@ CONFIG_FILES="etc/alternc/bureau.conf"
|
||||||
|
|
||||||
if [ -e /etc/bind/named.conf ]; then
|
if [ -e /etc/bind/named.conf ]; then
|
||||||
CONFIG_FILES="$CONFIG_FILES etc/bind/templates/zone.template
|
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
|
fi
|
||||||
if [ -e /etc/courier/authdaemonrc ]; then
|
if [ -e /etc/courier/authdaemonrc ]; then
|
||||||
CONFIG_FILES="$CONFIG_FILES etc/courier/authdaemonrc
|
CONFIG_FILES="$CONFIG_FILES etc/courier/authdaemonrc
|
||||||
|
@ -231,6 +226,11 @@ if [ -x /usr/sbin/apache2 ]; then
|
||||||
s="apache2"
|
s="apache2"
|
||||||
fi
|
fi
|
||||||
if [ -e /etc/alternc/apache.pem ]; then
|
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
|
if [ ! -h /etc/apache2/mods-enabled/ssl.load ] ; then
|
||||||
a2enmod ssl
|
a2enmod ssl
|
||||||
s="apache2"
|
s="apache2"
|
||||||
|
@ -240,6 +240,10 @@ if [ -x /usr/sbin/apache2 ]; then
|
||||||
s="apache2"
|
s="apache2"
|
||||||
fi
|
fi
|
||||||
else
|
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 "SSL not configured"
|
||||||
echo "create a certificate in /etc/alternc/apache.pem and rerun alternc.install"
|
echo "create a certificate in /etc/alternc/apache.pem and rerun alternc.install"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue