File: installation-report.postinst

package info (click to toggle)
installation-report 2.97
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 828 kB
  • sloc: sh: 443; makefile: 2
file content (17 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e
#DEBHELPER#

if [ "$1" = configure ] && dpkg --compare-versions "$2" lt 2.13; then
	for file in /var/log/installer/cdebconf/*.dat \
		/var/log/installer/syslog /var/log/installer/messages \
		/var/log/installer/partman; do
		if [ -e "$file" ]; then
			chmod 600 $file
		fi
	done
fi

if [ "$1" = configure ] && dpkg --compare-versions "$2" lt 2.32; then
	update-rc.d installation-report remove
fi