[Koha-patches] [PATCH] Bug 6997: Koha-remove leaves system in inconsistent state

Robin Sheat robin at catalyst.net.nz
Mon Oct 10 21:21:27 CEST 2011


Op dinsdag 11 oktober 2011 01:16:51 schreef Jared Camins-Esakov:
> +    [ -f "/etc/apache2/sites-available/$name" ]  && \
> +        rm "/etc/apache2/sites-available/$name"
> +    [ -f "/etc/koha/sites/$name/koha-conf.xml" ] && \
> +        rm "/etc/koha/sites/$name/koha-conf.xml"

While I'm OK with this patch, a simpler way do do this is simply to add '-f' 
to the rm, and ' || true' to the other things we don't care about.

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/koha-patches/attachments/20111011/d826861b/attachment.pgp>


More information about the Koha-patches mailing list