[Pkg-samba-maint] r1767 - trunk/samba/debian

vorlon at alioth.debian.org vorlon at alioth.debian.org
Fri Mar 14 06:40:33 UTC 2008


Author: vorlon
Date: 2008-03-14 06:40:33 +0000 (Fri, 14 Mar 2008)
New Revision: 1767

Modified:
   trunk/samba/debian/samba-common.postinst
Log:
apply the same sed command from the previous commit to upgrades from pre-ucf
versions



Modified: trunk/samba/debian/samba-common.postinst
===================================================================
--- trunk/samba/debian/samba-common.postinst	2008-03-14 06:32:10 UTC (rev 1766)
+++ trunk/samba/debian/samba-common.postinst	2008-03-14 06:40:33 UTC (rev 1767)
@@ -103,6 +103,13 @@
 
 	cp "$TEMPLATE" "$NEWFILE"
 	configure_smb_conf "$NEWFILE"
+
+	if [ -e "$CONFIG" ]; then
+		sed -e '1,/^[;#[:space:]]*\[cdrom\]/ { d }
+			1,/^[[:space:]]*\[/ { /^[^[]/d; /^$/d }
+		' "$CONFIG" >> "$NEWFILE"
+	fi
+
 	ucf --three-way --debconf-ok "$NEWFILE" "$CONFIG"
 fi
 




More information about the Pkg-samba-maint mailing list