diff options
Diffstat (limited to 'packaging/Debian/debian/samba.postinst')
-rw-r--r-- | packaging/Debian/debian/samba.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/Debian/debian/samba.postinst b/packaging/Debian/debian/samba.postinst index 1a25290ed2..7b0bdd92ad 100644 --- a/packaging/Debian/debian/samba.postinst +++ b/packaging/Debian/debian/samba.postinst @@ -165,7 +165,7 @@ then /^\[global\]/,/^[[:space:]]*\[/ \ s/^[[:space:]]*passdb backend[[:space:]]*=[[:space:]]*//pi" \ < /etc/samba/smb.conf \ - | tail -1` + | tail -n 1` if echo "$PASSDB" | egrep -q "(^|[[:space:]])smbpasswd"; then if ! echo "$PASSDB" | egrep -q "(^|[[:space:]])tdbsam"; then PASSDB=`echo $PASSDB | sed -e's/\(^\|[[:space:]]\)smbpasswd/\1tdbsam/'` |