[Pkg-sql-ledger-commit] r97 - trunk/debian

pkg-sql-ledger-discusssion at lists.alioth.debian.org pkg-sql-ledger-discusssion at lists.alioth.debian.org
Thu Jan 5 01:05:52 UTC 2006


Author: hertzog
Date: 2006-01-05 01:05:52 +0000 (Thu, 05 Jan 2006)
New Revision: 97

Modified:
   trunk/debian/postinst
Log:
Check for existence of the file before doing the grep.
(testing the commit notification at the same time)


Modified: trunk/debian/postinst
===================================================================
--- trunk/debian/postinst	2006-01-05 00:42:19 UTC (rev 96)
+++ trunk/debian/postinst	2006-01-05 01:05:52 UTC (rev 97)
@@ -26,7 +26,7 @@
 
 includeline="Include /etc/sql-ledger/sql-ledger-httpd.conf"
 
-if grep -q "^$includeline" $httpdconf ; then
+if test -e $httpdconf && grep -q "^$includeline" $httpdconf ; then
     echo "info: SQL-Ledger is already enabled in $httpdconf"
 else
     echo "$includeline" >> $httpdconf




More information about the Pkg-sql-ledger-commit mailing list