[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