File: mgetty-fax.preinst

package info (click to toggle)
mgetty 1.2.1-1.1
  • links: PTS
  • area: main
  • in suites:
  • size: 5,800 kB
  • sloc: ansic: 42,691; sh: 6,513; perl: 6,234; makefile: 1,465; tcl: 756; lisp: 283
file content (24 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

action=$1
version=$2

case $action in
  upgrade|install )
    if [ -n "$version" ] && dpkg --compare-versions "$version" lt 1.1.28-1
    then
      # Log files should go in /var/log/mgetty
      if [ -f /var/log/acct.log ]; then
	  echo "Moving /var/log/acct.log to /var/log/mgetty..."
	  mv /var/log/acct.log /var/log/mgetty/
      fi
      if [ -f /var/log/faxrunqd.log ]; then
	  echo "Moving /var/log/faxrunqd.log to /var/log/mgetty..."
	  mv /var/log/faxrunqd.log /var/log/mgetty/
      fi
    fi
  ;;
esac

#DEBHELPER#