From 7dc30c4f7d8eab47068a70feef62f39005d0bb48 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Mon, 29 Oct 2007 23:59:55 +0000 Subject: [PATCH] r5: --- debian/postinst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 debian/postinst 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 -- 1.7.10.4