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
# suid manager, for those who wish it.
if [ -x /usr/sbin/suidregister -a -f /etc/suid.conf ]; then
suidregister -s cron /usr/bin/crontab root root 4755
fi
update-rc.d cron defaults 89 11 >/dev/null
# Copy existing allow/deny files
crondir="/var/spool/cron"
pausemessage="F"
for fname in allow deny ; do
if [ -f $crondir/$fname ] ; then
if [ ! -f $/etc/cron.$fname ] ; then
mv $crondir/$fname /etc/cron.$fname
echo " "
echo "Moving $crondir/$fname to /etc/cron.$fname to comply with Debian policy"
pausemessage="T"
else
echo " "
echo "Warning:"
echo "Both $crondir/$fname and /etc/cron.$fname exist -- cron will"
echo "use /etc/cron.$fname"
pausemessage="T"
fi
fi
done
#
# we can do this since all crons are 3.0pl1.
#
upver=99
if [ -n "$2" ] ; then
upver=${2#3.0pl1-}
fi
if [ "$1" = "configure" -a "$upver" -lt "43" ] ; then
echo " "
echo "The format of the setuid.today file (output from checksecurity) has"
echo "changed. This means that the first run of checksecurity after the "
echo "upgrade will produce a diff on every every file affected".
pausemessage="T"
fi
start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/cron
|