[Pkg-sql-ledger-commit] r416 - ledger-smb/trunk/debian

pkg-sql-ledger-commit-owner at lists.alioth.debian.org pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Tue Jan 17 17:48:01 UTC 2012


Author: jame-guest
Date: 2012-01-17 17:48:01 +0000 (Tue, 17 Jan 2012)
New Revision: 416

Modified:
   ledger-smb/trunk/debian/ledgersmb.postinst
Log:
Install a default copy of pos.conf.pl during initial package installation.

Modified: ledger-smb/trunk/debian/ledgersmb.postinst
===================================================================
--- ledger-smb/trunk/debian/ledgersmb.postinst	2012-01-16 01:01:58 UTC (rev 415)
+++ ledger-smb/trunk/debian/ledgersmb.postinst	2012-01-17 17:48:01 UTC (rev 416)
@@ -44,6 +44,13 @@
         fi
       fi
     fi
+    # Only do these if this is the initial install.
+    if [ "$2" = "" ]; then
+      # Install a default copy of pos.conf.pl using the example template file.
+      if [ ! -e "/usr/share/ledgersmb/pos.conf.pl" ]; then
+        cp /usr/share/doc/ledgersmb/examples/pos.conf.pl.template /usr/share/ledgersmb/pos.conf.pl
+      fi
+    fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)




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