#!/bin/sh set -e SLAPDPATH="/etc/init.d/slapd" SLAPDUSRPATH="/usr/share/llxcfg-ldap/slapd" case "$1" in configure) llxcfg-ldap set-acl /net/share || true llxcfg-ldap set-acl-net || true dpkg-divert --package llxcfg-ldap --rename --quiet --add --divert ${SLAPDPATH}.real $SLAPDPATH [ -L "$SLAPDPATH" ] || ln -s $SLAPDUSRPATH $SLAPDPATH chmod 755 $SLAPDUSRPATH if [ -d "/net/home/other" ]; then mv /net/home/other /net/home/others fi update-rc.d lliurex-slapd start 17 2 3 4 5 . ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0