postinst is in apt-dater 1.0.2+git20151216-1.
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 | #!/bin/sh
set -e
if [ "$1" = configure ]; then
getent group apt-dater >/dev/null 2>&1 || addgroup --system apt-dater
chown :apt-dater /etc/apt-dater /etc/apt-dater/ssh
chmod 0750 /etc/apt-dater
chmod 0710 /etc/apt-dater/ssh
for d in /var/cache/apt-dater/stats /var/cache/apt-dater/tmux /var/lib/apt-dater/history; do
chown :apt-dater "$d"
chmod 02770 "$d"
done
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|