From 136ae243e844f655d513393912787da9e59ea25c Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Wed, 18 Feb 2009 18:01:34 +0000 Subject: [PATCH] make an upgrade script for 0.9.10 to fix an old mail redirect problem Closes: #673 --- .gitattributes | 1 + install/upgrades/0.9.10.sh | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 install/upgrades/0.9.10.sh diff --git a/.gitattributes b/.gitattributes index 3490091b..6d63901f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -321,6 +321,7 @@ install/reset_root.php -text install/upgrade_check.sh -text install/upgrades/0.9.1.sh -text install/upgrades/0.9.1.sql -text +install/upgrades/0.9.10.sh -text install/upgrades/0.9.10.sql -text install/upgrades/0.9.1_migrationldap.php -text install/upgrades/0.9.2.php -text diff --git a/install/upgrades/0.9.10.sh b/install/upgrades/0.9.10.sh new file mode 100755 index 00000000..1212a649 --- /dev/null +++ b/install/upgrades/0.9.10.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +# We load local.sh +. /etc/alternc/local.sh + +find ${ALTERNC_LOC}/dns -lname "${ALTERNC_LOC}/dns/redir/mail" -print -exec rm -f '{}' \; -exec ln -sf ${ALTERNC_LOC}/bureau/admin/webmail '{}' \; + +rm -rf ${ALTERNC_LOC}/apacheconf +/usr/lib/alternc/basedir_prot.sh + +# if apache exists we reload +if [ -x /etc/init.d/apache ] ; then + invoke-rc.d apache reload + invoke-rc.d apache-ssl reload +fi + +# if apache2 exists we reload +if [ -x /etc/init.d/apache2 ] ; then + invoke-rc.d apache2 force-reload +fi