File: postinst

package info (click to toggle)
mime-support 3.44-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 164 kB
  • ctags: 18
  • sloc: perl: 619; makefile: 58; sh: 54
file content (22 lines) | stat: -rwxr-xr-x 457 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
#! /bin/sh -e


#if [ "$1" = "configure" ]; then
#fi


# Remove the old status directory (and any orphaned install-mime program)
rm -fr /var/lib/mime
rm -f  /usr/sbin/install-mime


# Use "see" as alternative for "view"
update-alternatives \
    --install /usr/bin/view view /usr/bin/see 1 \
    --slave /usr/share/man/man1/view.1.gz view.1.gz /usr/share/man/man1/see.1.gz


# Run the update program
if [ -x /usr/sbin/update-mime ]; then
    update-mime
fi