File: postinst

package info (click to toggle)
boa 0.94.14rc21-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,096 kB
  • ctags: 621
  • sloc: ansic: 7,277; sh: 2,876; perl: 157; makefile: 135
file content (19 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin

set -e

if [ -e /etc/cron.daily/boa ]; then
  echo 'conffile /etc/cron.daily/boa exists.  New functionality is in /etc/logrotate.d/boa.'
  if test `md5sum /etc/cron.daily/boa | awk '{print $1}'` = '5e05937798a45a32ed7bf03e596d1427'; then
    echo '/etc/cron.daily/boa not modified -- Removing /etc/cron.daily/boa'
    rm -f /etc/cron.daily/boa
  else
    echo '/etc/cron.daily/boa modified -- Moving to /etc/cron.daily/boa.obsolete'
    mv -f /etc/cron.daily/boa /etc/cron.daily/boa.obsolete
  fi
fi

#DEBHELPER#

exit 0