26 lines
475 B
Bash
26 lines
475 B
Bash
#!/bin/sh -e
|
|
|
|
case "$1" in
|
|
triggered)
|
|
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
|
invoke-rc.d authentic-ifef restart || exit $?
|
|
else
|
|
/etc/init.d/authentic-ifef restart || exit $?
|
|
fi
|
|
;;
|
|
*)
|
|
#DEBHELPER#
|
|
|
|
# Rerun slapd since schema could have been modified
|
|
if [ -f /etc/init.d/slapd ]; then
|
|
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
|
|
invoke-rc.d slapd restart || exit $?
|
|
else
|
|
/etc/init.d/slapd restart || exit $?
|
|
fi
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|