diff options
author | Eloy Paris <peloy@samba.org> | 2003-07-03 04:06:28 +0000 |
---|---|---|
committer | Eloy Paris <peloy@samba.org> | 2003-07-03 04:06:28 +0000 |
commit | 91100b67e63e5ac127af92a0bc70bcfa53c64be3 (patch) | |
tree | c7e53390785a54d00a3c11f6710af0e1f015399f /packaging/Debian/debian/samba-common.postinst | |
parent | a31a2c159cd51112abdbe230c7a4df743fe14288 (diff) | |
download | samba-91100b67e63e5ac127af92a0bc70bcfa53c64be3.tar.gz samba-91100b67e63e5ac127af92a0bc70bcfa53c64be3.tar.bz2 samba-91100b67e63e5ac127af92a0bc70bcfa53c64be3.zip |
More Debian updates.
(This used to be commit 1f7de8c42e05c70cdb76c4f917b7ff128f5249e6)
Diffstat (limited to 'packaging/Debian/debian/samba-common.postinst')
-rw-r--r-- | packaging/Debian/debian/samba-common.postinst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packaging/Debian/debian/samba-common.postinst b/packaging/Debian/debian/samba-common.postinst index cda437b60c..6c6eb9bf53 100644 --- a/packaging/Debian/debian/samba-common.postinst +++ b/packaging/Debian/debian/samba-common.postinst @@ -79,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 |