File: xtradius.postinst

package info (click to toggle)
xtradius 1.2.1-beta2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,252 kB
  • ctags: 921
  • sloc: ansic: 10,181; perl: 733; sh: 260; makefile: 149; sql: 21
file content (36 lines) | stat: -rw-r--r-- 624 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
35
36
#!/bin/sh

case "$1" in
  configure)
	update-rc.d radiusd defaults 50 > /dev/null
	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
	/etc/init.d/radiusd start
	;;
  abort-upgrade)
	;;
  abort-remove)
	;;
  abort-deconfigure)
	;;
esac

#DEBHELPER#

exit 0