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

pkg-sql-ledger-commit-owner at lists.alioth.debian.org pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Mon Dec 26 00:57:59 UTC 2011


Author: jame-guest
Date: 2011-12-26 00:57:58 +0000 (Mon, 26 Dec 2011)
New Revision: 360

Modified:
   ledger-smb/trunk/debian/ledgersmb.postinst
   ledger-smb/trunk/debian/rules
Log:
Set defaults for /etc/ledgersmb in debian/rules instead of debian/postinst.

Modified: ledger-smb/trunk/debian/ledgersmb.postinst
===================================================================
--- ledger-smb/trunk/debian/ledgersmb.postinst	2011-12-25 21:08:19 UTC (rev 359)
+++ ledger-smb/trunk/debian/ledgersmb.postinst	2011-12-26 00:57:58 UTC (rev 360)
@@ -20,10 +20,6 @@
 
 case "$1" in
     configure)
-    #   Set default user:group & permissions for etc/ledgersmb
-    chown -R www-data:www-data /etc/ledgersmb
-    chmod 0600 /etc/ledgersmb/*.conf
-
     #   Remove if present then install the stat setting for /etc/ledgersmb
     dpkg-statoverride --remove /etc/ledgersmb >/dev/null 2>&1 || true
     dpkg-statoverride --update --add www-data www-data 2755 /etc/ledgersmb

Modified: ledger-smb/trunk/debian/rules
===================================================================
--- ledger-smb/trunk/debian/rules	2011-12-25 21:08:19 UTC (rev 359)
+++ ledger-smb/trunk/debian/rules	2011-12-26 00:57:58 UTC (rev 360)
@@ -74,7 +74,10 @@
 	dh_link
 	dh_compress
 	dh_fixperms
-    # Corrections to file permissions
+    #   Set default user:group & permissions for etc/ledgersmb
+	chmod 0600 $(LSMBDIR)/etc/ledgersmb/*.conf
+	chown -R www-data:www-data $(LSMBDIR)/etc/ledgersmb
+    # Corrections to file permissions in the package build directory.
 	chmod +x $(LSMBDIR)/scripts/*.pl
 	chmod -x $(LSMBDIR)/locale/po/*
 	chmod -x $(LSMBDIR)/locale/html/*




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