summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian/samba-common.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Debian/debian/samba-common.postinst')
-rw-r--r--packaging/Debian/debian/samba-common.postinst8
1 files changed, 3 insertions, 5 deletions
diff --git a/packaging/Debian/debian/samba-common.postinst b/packaging/Debian/debian/samba-common.postinst
index b3f3c5e9fd..6c6eb9bf53 100644
--- a/packaging/Debian/debian/samba-common.postinst
+++ b/packaging/Debian/debian/samba-common.postinst
@@ -1,6 +1,5 @@
#!/bin/sh
#
-# $Id: samba-common.postinst,v 1.2 2003/06/01 07:12:51 peloy Exp $
#
set -e
@@ -80,15 +79,14 @@ if [ "${RET}" = "true" ]; then
if ! grep -q "^[[:space:]]*unix charset[[:space:]]*=" /etc/samba/smb.conf
then
db_get samba-common/character_set || true
- DISPLAYCHARSET="${RET}"
- if [ -n "$DISPLAYCHARSET" ]
+ UNIXCHARSET="${RET}"
+ if [ -n "$UNIXCHARSET" ]
then
sed -e "s/^\([[:space:]]*\)\[global\]/\1\[global\]/i
s/^\([[:space:]]*\)character set/\1character set/i
/^[[:space:]]*\[global\]/,/^[[:space:]]*\[/ {
/^[[:space:]]*character set[[:space:]]*=/c \\
- display charset = $DISPLAYCHARSET\\
- unix charset = $DISPLAYCHARSET
+ unix charset = $UNIXCHARSET
}" < /etc/samba/smb.conf > ${TMPFILE}
mv -f ${TMPFILE} /etc/samba/smb.conf
fi