trying to get HEAD building again. If you want the code
[kai/samba-autobuild/.git] / packaging / Debian / debian / samba-common.postinst
index b3f3c5e9fdc7535c6dbfa5f3d356c99cf27749a0..6c6eb9bf5374a8ebfb43bbaa72d1e8108680ac67 100644 (file)
@@ -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