Tchô courier
This commit is contained in:
parent
d0ac6ea8e5
commit
2015f21029
|
@ -2,7 +2,6 @@ etc/alternc
|
||||||
etc/alternc/templates
|
etc/alternc/templates
|
||||||
etc/bind
|
etc/bind
|
||||||
etc/bind/templates
|
etc/bind/templates
|
||||||
etc/courier
|
|
||||||
etc/phpmyadmin
|
etc/phpmyadmin
|
||||||
etc/postfix
|
etc/postfix
|
||||||
etc/squirrelmail
|
etc/squirrelmail
|
||||||
|
|
|
@ -4,7 +4,7 @@ Default: true
|
||||||
_Description: Do you REALLY want to install AlternC on this computer ?
|
_Description: Do you REALLY want to install AlternC on this computer ?
|
||||||
You are currently trying to install AlternC on your computer. Be aware
|
You are currently trying to install AlternC on your computer. Be aware
|
||||||
that this package will overwrite critical system files, including but not
|
that this package will overwrite critical system files, including but not
|
||||||
limited to the config files of bind, postfix, courier, squirrelmail and proftpd.
|
limited to the config files of bind, postfix, dovecot, squirrelmail and proftpd.
|
||||||
.
|
.
|
||||||
A backup of your old configuration will be stored in
|
A backup of your old configuration will be stored in
|
||||||
"/var/backups/alternc/etc-original-`date`.tar.gz".
|
"/var/backups/alternc/etc-original-`date`.tar.gz".
|
||||||
|
|
|
@ -4,7 +4,6 @@ etc/alternc/templates/apache2
|
||||||
etc/alternc/functions_hosting
|
etc/alternc/functions_hosting
|
||||||
etc/bind
|
etc/bind
|
||||||
etc/bind/templates
|
etc/bind/templates
|
||||||
etc/courier
|
|
||||||
etc/cron.d
|
etc/cron.d
|
||||||
etc/phpmyadmin
|
etc/phpmyadmin
|
||||||
etc/postfix
|
etc/postfix
|
||||||
|
|
|
@ -4,7 +4,7 @@ Default: true
|
||||||
_Description: Do you REALLY want to install AlternC on this computer ?
|
_Description: Do you REALLY want to install AlternC on this computer ?
|
||||||
You are currently trying to install AlternC on your computer. Be aware
|
You are currently trying to install AlternC on your computer. Be aware
|
||||||
that this package will overwrite critical system files, including but not
|
that this package will overwrite critical system files, including but not
|
||||||
limited to the config files of bind, postfix, courier, squirrelmail and proftpd.
|
limited to the config files of bind, postfix, dovecot, squirrelmail and proftpd.
|
||||||
.
|
.
|
||||||
A backup of your old configuration will be stored in
|
A backup of your old configuration will be stored in
|
||||||
"/var/backups/alternc/etc-original-`date`.tar.gz".
|
"/var/backups/alternc/etc-original-`date`.tar.gz".
|
||||||
|
|
|
@ -40,10 +40,6 @@ 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.options"
|
||||||
fi
|
fi
|
||||||
if [ -e /etc/courier/authdaemonrc ]; then
|
|
||||||
CONFIG_FILES="$CONFIG_FILES etc/courier/authdaemonrc
|
|
||||||
etc/courier/authmysqlrc"
|
|
||||||
fi
|
|
||||||
if [ -d /etc/postfix ]; then
|
if [ -d /etc/postfix ]; then
|
||||||
CONFIG_FILES="$CONFIG_FILES etc/postfix/myalias.cf etc/postfix/myrelay.cf
|
CONFIG_FILES="$CONFIG_FILES etc/postfix/myalias.cf etc/postfix/myrelay.cf
|
||||||
etc/postfix/mydomain.cf etc/postfix/mygid.cf
|
etc/postfix/mydomain.cf etc/postfix/mygid.cf
|
||||||
|
@ -284,11 +280,6 @@ done < $postfix_conf
|
||||||
OLDDESTINATION=`postconf mydestination | awk -F '=' '{print $2}'`
|
OLDDESTINATION=`postconf mydestination | awk -F '=' '{print $2}'`
|
||||||
echo "$OLDDESTINATION" | grep -q -v "$FQDN" && postconf -e "mydestination = $FQDN, $OLDDESTINATION"
|
echo "$OLDDESTINATION" | grep -q -v "$FQDN" && postconf -e "mydestination = $FQDN, $OLDDESTINATION"
|
||||||
|
|
||||||
if [ -e /etc/courier/authmysqlrc ] ; then
|
|
||||||
chown root:root /etc/courier/authmysqlrc
|
|
||||||
chmod 640 /etc/courier/authmysqlrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e /etc/proftpd.conf ] ; then
|
if [ -e /etc/proftpd.conf ] ; then
|
||||||
chmod 640 /etc/proftpd/proftpd.conf
|
chmod 640 /etc/proftpd/proftpd.conf
|
||||||
fi
|
fi
|
||||||
|
@ -326,9 +317,7 @@ tar -zcf "$INSTALLED_CONFIG_TAR" -C / $CONFIG_FILES
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Reload services
|
# Reload services
|
||||||
#
|
#
|
||||||
for service in postfix bind9 courier-authdaemon \
|
for service in postfix bind9 dovecot cron proftpd; do
|
||||||
courier-imap courier-imap-ssl courier-pop courier-pop-ssl \
|
|
||||||
cron proftpd; do
|
|
||||||
invoke-rc.d $service force-reload || true
|
invoke-rc.d $service force-reload || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue