File: xtradius.postinst

package info (click to toggle)
xtradius 1.2.1-beta2-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,256 kB
  • ctags: 921
  • sloc: ansic: 10,183; perl: 733; sh: 267; makefile: 148; sql: 21
file content (34 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
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
32
33
34
#!/bin/sh

case "$1" in
  configure)
	if [ ! -f /var/log/radius.log ]
	then
		touch /var/log/radius.log
		chmod 640 /var/log/radius.log
		chown root:adm /var/log/radius.log
	fi
	if [ ! -f /var/log/radwatch.log ]
	then
		touch /var/log/radwatch.log
		chmod 640 /var/log/radwatch.log
		chown root:adm /var/log/radwatch.log
	fi
	if [ ! -f /var/log/radwtmp ]
	then
		touch /var/log/radwtmp
		chmod 644 /var/log/radwtmp
		chown root:adm /var/log/radius.log
	fi
	;;
  abort-upgrade)
	;;
  abort-remove)
	;;
  abort-deconfigure)
	;;
esac

#DEBHELPER#

exit 0