File: postinst

package info (click to toggle)
anacron 2.3-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 228 kB
  • ctags: 157
  • sloc: ansic: 1,159; makefile: 99; sh: 61
file content (34 lines) | stat: -rw-r--r-- 769 bytes parent folder | download
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

case "$1" in
    configure)
        # continue below
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        exit 0
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

# Does /etc/crontab contain an entry to run anacron?
if grep -q -E '^(([[:digit:]]+|\*)[[:space:]]+){5}\w+[[:space:]]+(/usr/sbin/)?anacron' /etc/crontab
then
    # yes.

    echo
    echo "This version of the anacron package registers its cron job"
    echo "through the /etc/cron.d/anacron file. Therefore, your /etc/crontab"
    echo "file should _NOT_ contain a job to run anacron."
    echo
    echo "It's suggested that you remove this job."
    echo
    echo "Press <Return> to continue..."
    read ans
fi

#DEBHELPER#