This file is indexed.

postinst is in bcron-run 0.10-3.

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
#!/bin/sh
set -e

test "$1" = 'configure' || exit 0

err() { echo >&2 "$*"; exit 1; }

getent passwd cron >/dev/null || \
  adduser --system --group --home /var/spool/cron --no-create-home cron
getent passwd cronlog >/dev/null || \
  adduser --system --home /nonexistent --no-create-home cronlog

if test ! -p /var/spool/cron/trigger; then
  test ! -e /var/spool/cron/trigger ||
    err /var/spool/cron/trigger exists, but is not a fifo.
  mkfifo -m0600 /var/spool/cron/trigger
fi

for i in crontabs tmp trigger; do
  chown cron:cron /var/spool/cron/$i
  chmod go-rwx /var/spool/cron/$i
done
for i in `ls -1 /var/spool/cron/crontabs/ || :`; do
  chown cron:cron /var/spool/cron/crontabs/$i
done
chown cronlog:adm /var/log/bcron /var/log/bcron/spool /var/log/bcron/update
chmod 2750 /var/log/bcron /var/log/bcron/spool /var/log/bcron/update

test -n "$2" ||
  for i in sched spool update; do
    update-service --add /etc/bcron-$i
  done
test -z "$2" ||
  sv t /etc/service/bcron-* || echo 'unable to restart bcron-* services.'