File: postinst

package info (click to toggle)
bsdmainutils 6.0.17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 944 kB
  • ctags: 526
  • sloc: ansic: 6,830; makefile: 113; sh: 79; perl: 39
file content (24 lines) | stat: -rwxr-xr-x 585 bytes parent folder | download
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

set -e

. /usr/share/debconf/confmodule

if [ -f /usr/lib/calendar/default ]; then
  mv -f /usr/lib/calendar/default /etc/calendar/default.old

  # don't kill installation if directory can't be removed
  rmdir /usr/lib/calendar 2>/dev/null || true
fi

# handle name change of cron script
if [ -f /etc/cron.daily/calendar ]; then
  mv -f /etc/cron.daily/calendar /etc/cron.daily/bsdmainutils
fi

update-alternatives \
	--install /usr/bin/write write /usr/bin/bsd-write 100 \
	--slave /usr/share/man/man1/write.1.gz write.1.gz /usr/share/man/man1/bsd-write.1.gz

#DEBHELPER#