[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#396782: apache2.2-common: Upgrade adds "default" virtual host; breaks existing config



[Andreas Barth]
> I propose to change this check
>         if [ ! -L /etc/apache2/sites-enabled/000-default -a \
>              ! -f /etc/apache2/sites-enabled/000-default ]; then
>                 ln -s /etc/apache2/sites-available/default /etc/apache2/sites-enabled/000-default
>         fi
> to
>         if [ ! -L /etc/apache2/sites-enabled/000-default -a \
>              ! -f /etc/apache2/sites-enabled/000-default -a] && \
                                                           ^^^typo
>              [ $(find /etc/apache2/sites-enabled/ -mindepth 1 -type f -o -type l | wc -l) -eq 0 ]; then
>                 ln -s /etc/apache2/sites-available/default /etc/apache2/sites-enabled/000-default
>         fi

I don't understand the need for -mindepth since it we're specifically
looking for "-type f -o -type l".  Anyway, I'll stare at it a bit and
do something similar to what you propose.

Thanks,
Peter

Attachment: signature.asc
Description: Digital signature


Reply to: