#!/bin/sh set -e SLAPDPATH="/etc/init.d/slapd" SLAPDUSRPATH="/usr/share/lliurex-slapd/slapd" case "$1" in configure) dpkg-divert --package lliurex-slapd --rename --quiet --add --divert ${SLAPDPATH}.real $SLAPDPATH [ -L "$SLAPDPATH" ] || ln -s $SLAPDUSRPATH $SLAPDPATH chmod 755 $SLAPDUSRPATH ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0