[Pkg-shadow-commits] r1029 - trunk/debian

Christian Perrier bubulle at costa.debian.org
Tue Jun 20 06:36:26 UTC 2006


Author: bubulle
Date: 2006-06-20 06:36:24 +0000 (Tue, 20 Jun 2006)
New Revision: 1029

Modified:
   trunk/debian/changelog
   trunk/debian/passwd.postinst
Log:
Change the condition to call shadowconfig. #374457


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2006-06-18 17:18:22 UTC (rev 1028)
+++ trunk/debian/changelog	2006-06-20 06:36:24 UTC (rev 1029)
@@ -4,6 +4,10 @@
   * Debian specific fixes:
     - 503_shadowconfig.8: fix a typo in the French manpage (README.debian
       instead of README.Debian). Thanks to Mohammed Adnène Trojette.
+  * Debian packaging fixes:
+    - passwd.postinst: Modified call to shadowconfig as "install" is not
+      a documented argument to postinst. Thanks to Justin Pryzby for
+      spotting that one and proposing a fix. Closes: #374457
   * Debconf translation updates:
     - Lituanian translation updated. Closes: #374313
 

Modified: trunk/debian/passwd.postinst
===================================================================
--- trunk/debian/passwd.postinst	2006-06-18 17:18:22 UTC (rev 1028)
+++ trunk/debian/passwd.postinst	2006-06-20 06:36:24 UTC (rev 1029)
@@ -34,11 +34,11 @@
 		)
 	fi
     ;;
-install)
-    [ "x$2" = "x" ] && shadowconfig on
-    ;;
 esac
 
+# Run shadowconfig only on new installs
+[ -z "$2" ] && shadowconfig on
+
 #DEBHELPER#
 
 exit 0




More information about the Pkg-shadow-commits mailing list