[m-dev.] diff: abort w3 installation if htdig problems

Peter Ross peter.ross at miscrit.be
Wed Aug 9 21:54:14 AEST 2000


Hi,


===================================================================


Estimated hours taken: 0.1

w3/bin/install_webpages:
    If any of the htdig process fail, abort the installation.
    This ensures that the good htdig database isn't overwritten with the bad
    work files.

Index: install_webpages
===================================================================
RCS file: /home/mercury1/repository/w3/bin/install_webpages,v
retrieving revision 1.18
diff -u -r1.18 install_webpages
--- install_webpages	2000/08/09 11:48:51	1.18
+++ install_webpages	2000/08/09 11:51:15
@@ -58,8 +58,8 @@
 umask 002
 
     # Index the web-site for searching.
-htdig -c /etc/htdig/htdig-mercury.conf -a -i
-htmerge -c /etc/htdig/htdig-mercury.conf -a
+htdig -c /etc/htdig/htdig-mercury.conf -a -i || exit 1
+htmerge -c /etc/htdig/htdig-mercury.conf -a || exit 1
 
     # Replace the work files with their alternate versions.
 cd /var/spool/htdig

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list