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

pkg-sql-ledger-commit-owner at lists.alioth.debian.org pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Thu May 24 22:54:21 UTC 2012


Author: jame-guest
Date: 2012-05-24 22:54:21 +0000 (Thu, 24 May 2012)
New Revision: 547

Modified:
   ledger-smb/trunk/debian/ledgersmb.postinst
Log:
Add code in ledgersmb.postinst to create initial set of templates from examples.

Modified: ledger-smb/trunk/debian/ledgersmb.postinst
===================================================================
--- ledger-smb/trunk/debian/ledgersmb.postinst	2012-05-24 21:15:42 UTC (rev 546)
+++ ledger-smb/trunk/debian/ledgersmb.postinst	2012-05-24 22:54:21 UTC (rev 547)
@@ -42,6 +42,11 @@
     configure)
         # Only do these if this is the initial install.
         if [ -z "$old_version" ]; then
+            # Create initial default set of templates from the examples
+            if [ ! -d "/var/lib/ledgersmb/templates" ]; then
+                cp -r /usr/share/doc/ledgersmb/examples/templates /var/lib/ledgersmb
+                chown -r www-data:www-data /var/lib/ledgersmb/templates
+            fi
             # Do Apache related processing if it is present.
             if [ -d "/etc/apache2" ]; then
                 # Enable Apache mod_rewrite




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