From: Ivan Rako Date: Mon, 29 Oct 2007 23:59:55 +0000 (+0000) Subject: r5: X-Git-Tag: debian/3.5.6-1~8 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=7dc30c4f7d8eab47068a70feef62f39005d0bb48;p=samba-cn.git r5: --- diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..ae1797c --- /dev/null +++ b/debian/postinst @@ -0,0 +1,18 @@ +#!/bin/sh -e + +[ "$1" = "configure" ] || exit 0 +[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx + +# Load CARNet Tools +. /usr/share/carnet-tools/functions.sh + +cp_check_and_sed '; security = user' \ + 's/;.*security = user/security = user/g' \ + /etc/samba/smb.conf || true + +# restart +if [ -x /usr/sbin/invoke-rc.d ]; then + [ -x /etc/init.d/samba ] && invoke-rc.d samba restart +else + [ -x /etc/init.d/samba ] && /etc/init.d/samba restart +fi