Package: rancid-cgi Version: 3.10-1 User: trei...@debian.org Tags: patch Usertags: colis-shparser
Hi, if /etc/rancid/apache.conf is a directory, the preinst will fail after possibly having removed /etc/rancid/lg.conf. This modification cannot be rolled back. We suggest to inverse the order in the script : if [ -e /etc/rancid/apache.conf ]; then rm /etc/rancid/apache.conf fi if [ -h /etc/rancid/lg.conf ]; then rm /etc/rancid/lg.conf fi This way, if /etc/rancid/apache.conf is a directory, the script will fail immediately. Note that the following conditional command cannot fail. -Nicolas and Ralf. -- Ralf Treinen Institut de Recherche en Informatique Fondamentale Équipe Preuves, Programmes et Systèmes Université Paris Diderot, Paris, France. http://www.irif.fr/~treinen/