[Pkg-samba-maint] [samba] 01/03: avoid moving only some tdb files and not others

Ivo De Decker idd-guest at alioth.debian.org
Tue Oct 22 07:13:56 UTC 2013


This is an automated email from the git hooks/post-receive script.

idd-guest pushed a commit to branch master
in repository samba.

commit 157e197bd91dc1bf90ebf05ab71d0adb3cebb426
Author: Ivo De Decker <ivo.dedecker at ugent.be>
Date:   Tue Oct 22 07:33:33 2013 +0200

    avoid moving only some tdb files and not others
---
 debian/samba.postinst |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/samba.postinst b/debian/samba.postinst
index 28c606e..3f67bd5 100644
--- a/debian/samba.postinst
+++ b/debian/samba.postinst
@@ -55,7 +55,15 @@ then
 				echo http://bugs.debian.org/726472
 				ls -al /var/lib/samba /var/lib/samba/private
 				exit 1
-			else
+			fi
+		fi
+	done
+	for file in passdb.tdb secrets.tdb schannel_store.tdb idmap2.tdb
+	do
+		if [ -e /var/lib/samba/$file ]
+		then
+			if ! [ -e /var/lib/samba/private/$file ]
+			then
 				mv /var/lib/samba/$file /var/lib/samba/private/$file
 			fi
 		fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list