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