Suppress an usueless restart of apache in dopo.sh

This chek is althought apache 1.3 dependent.

Modify the check before enabling the modules for apache2. Now it show be possible to perform an aptitude install apache2 php5 alternc ... 

I hope :)
This commit is contained in:
Pierre Gilles Mialon 2007-10-05 14:31:05 +00:00
parent 74a3d9702a
commit 03038d18dd
2 changed files with 3 additions and 3 deletions

View File

@ -192,7 +192,7 @@ then
echo "LoadModule ${php}_module /usr/lib/apache/1.3/lib${php}.so" | append_no_dupe /etc/apache-ssl/modules.conf
SERVICES="$SERVICES apache apache-ssl"
fi
if [ -x /usr/sbin/apache2 ]
if [ -x /usr/sbin/apache2 ] && ! ( [ -L /etc/apache2/mods-enabled/vhost_alias.load ] && [ -L /etc/apache2/mods-enabled/$php.load ] )
then
a2enmod vhost_alias
a2enmod $php

View File

@ -39,7 +39,7 @@ dolangs() {
find /var/alternc/bureau/locales -maxdepth 1 -mindepth 1 -type d -name "*_*" | dolangs
# Relance les apache pour qu'ils vident leur cache GetText
invoke-rc.d apache restart
invoke-rc.d apache-ssl restart
# invoke-rc.d apache restart
# invoke-rc.d apache-ssl restart
exit 0