diff options
Diffstat (limited to 'packaging/Debian/debian-stable/samba.prerm')
-rw-r--r-- | packaging/Debian/debian-stable/samba.prerm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/Debian/debian-stable/samba.prerm b/packaging/Debian/debian-stable/samba.prerm new file mode 100644 index 0000000000..ab62c706d8 --- /dev/null +++ b/packaging/Debian/debian-stable/samba.prerm @@ -0,0 +1,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# |