#!/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 #/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/ #/*/*/*/*/*/*/*/ Remove this code when aren't distupgrade in versions */*/*/*/*/*/*/*/*/*/*/*/ #/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/ # dpkg --compare-versions $2 lt 1.1.93 # rc=$? # if [ "$rc" = "0" ]; then # cp /usr/share/llxcfg-ldap/update-ldap.sh /etc/n4d/one-shot/update-ldap.sh # chmod +x /etc/n4d/one-shot/update-ldap.sh # service n4d restart # fi #/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/ #/*/*/*/*/*/*/*/ End Remove */*/*/*/*/*/*/*/*/*/*/ #/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/ [ -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