File: rt3.6-clients.postinst

package info (click to toggle)
request-tracker3.6 3.6.1-4+etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 9,028 kB
  • ctags: 1,371
  • sloc: perl: 27,270; sh: 671; makefile: 327
file content (31 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
set -e

OLDCONF=/etc/rt.conf
NEWCONF=/etc/request-tracker3.6/rt.conf

if [ -f "$OLDCONF" ] && [ ! -f "$NEWCONF" ]; then
    echo "Found $OLDCONF; moving it to $NEWCONF"
    mv "$OLDCONF" "$NEWCONF"
fi

alts() {
    update-alternatives --install /usr/bin/rt rt /usr/bin/rt-3.6 260 \
      --slave /usr/share/man/man1/rt.1.gz rt.1.gz \
              /usr/share/man/man1/rt-3.6.1.gz
    update-alternatives --install \
      /usr/bin/rt-mailgate rt-mailgate /usr/bin/rt-mailgate-3.6 260 \
      --slave /usr/share/man/man1/rt-mailgate.1.gz rt-mailgate.1.gz \
              /usr/share/man/man1/rt-mailgate-3.6.1.gz
}

case "$1" in
    configure)
        alts
        ;;
    abort-upgrade)
        alts
	;;
esac

#DEBHELPER#