summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/samba.postinst
diff options
context:
space:
mode:
authorEloy Paris <peloy@samba.org>2004-02-05 17:30:56 +0000
committerEloy Paris <peloy@samba.org>2004-02-05 17:30:56 +0000
commit4f27b0129850f1bdba21d6eff8f154eb1288ee2a (patch)
treef759155f8c1173993566fba9edc7163ee23f6256 /packaging/Debian/debian/samba.postinst
parentda371e74bb3299fbf951a6b1f373daff7a2c6018 (diff)
downloadsamba-4f27b0129850f1bdba21d6eff8f154eb1288ee2a.tar.gz
samba-4f27b0129850f1bdba21d6eff8f154eb1288ee2a.tar.bz2
samba-4f27b0129850f1bdba21d6eff8f154eb1288ee2a.zip
Updating the Debian packaging stuff in packaging/Debian/. This hadn't
been updated since the 3.0.0 release so it was broken for 3.0.1 and later. It's nice that now the Makefile supports a $DESTDIR for "make install" :-) (This used to be commit 40c6bf1498785850789fca3d28ea4e7ceaa296ce)
Diffstat (limited to 'packaging/Debian/debian/samba.postinst')
-rw-r--r--packaging/Debian/debian/samba.postinst2
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/'`