File: preinst

package info (click to toggle)
orphan-sysvinit-scripts 0.14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 176 kB
  • sloc: sh: 1,128; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

diversion_added_ver=0.14

if [ install = "$1" ] ||
       dpkg --compare-versions "$2" lt "$diversion_added_ver" ; then
    dpkg-divert --package orphan-sysvinit-scripts --add --rename \
		--divert /usr/lib/rsyslog/rsyslog-rotate.real \
		/usr/lib/rsyslog/rsyslog-rotate
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0