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

pkg-sql-ledger-commit-owner at lists.alioth.debian.org pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Fri Jun 8 16:03:23 UTC 2012


Author: jame-guest
Date: 2012-06-08 16:03:23 +0000 (Fri, 08 Jun 2012)
New Revision: 566

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

Modified: ledger-smb/trunk/debian/ledgersmb.postinst
===================================================================
--- ledger-smb/trunk/debian/ledgersmb.postinst	2012-06-08 15:51:24 UTC (rev 565)
+++ ledger-smb/trunk/debian/ledgersmb.postinst	2012-06-08 16:03:23 UTC (rev 566)
@@ -42,6 +42,11 @@
     configure)
         # Only do these if this is the initial install.
         if [ -z "$old_version" ]; then
+            # Create initial default set of css files from the examples
+            if [ ! -d "/var/lib/ledgersmb/css" ]; then
+                cp -r /usr/share/doc/ledgersmb/examples/css /var/lib/ledgersmb
+                chown -r www-data:www-data /var/lib/ledgersmb/css
+            fi
             # 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




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