summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/samba.prerm
blob: ab62c706d857c6f7b8328a8e373af209f6240811 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e

if [ "$1" = upgrade -a -n "$2" ] && dpkg --compare-versions "$2" lt 2.99 \
   && [ -e /var/lib/samba/passdb.tdb -a ! -e /etc/samba/smbpasswd ]
then
	pdbedit -i tdbsam -e smbpasswd
	rm -f /var/lib/samba/passdb.tdb
fi

#DEBHELPER#