From 4a090ba06a54f5da179ac02bb307cc03d08831bf Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 16 Jul 2003 05:34:56 +0000 Subject: trying to get HEAD building again. If you want the code prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad) --- packaging/Debian/debian/samba-common.postinst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packaging/Debian/debian/samba-common.postinst') 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 -- cgit