postinst is in zfs-zed 0.6.5.6-0ubuntu8.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #!/bin/sh
set -e
installed_dir=/usr/lib/zfs-linux/zfs/zed.d
enabled_dir=/etc/zfs/zed.d
# On a fresh install, enable most scriptlets.
if [ -z "$2" ]
then
for scriptlet in "$installed_dir"/*
do
name=$(basename "$scriptlet")
case "$name" in
all-debug.sh)
continue
;;
generic-notify.sh)
continue
;;
esac
if ! [ -e "$enabled_dir/$name" ]
then
ln -s "$scriptlet" "$enabled_dir/"
fi
done
fi
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/zed" ]; then
update-rc.d zed defaults >/dev/null
fi
if [ -x "/etc/init.d/zed" ] || [ -e "/etc/init/zed.conf" ]; then
invoke-rc.d zed start || exit $?
fi
fi
# End automatically added section
# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
deb-systemd-invoke start zed.service >/dev/null || true
fi
# End automatically added section
|