File: conserver-client.postinst

package info (click to toggle)
conserver 8.1.1-2
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 1,512 kB
  • ctags: 1,012
  • sloc: ansic: 18,713; sh: 3,093; makefile: 319
file content (29 lines) | stat: -rw-r--r-- 592 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
25
26
27
28
29
#!/bin/sh -e

conf=/etc/conserver/console.conf


if [ "$1" = "configure" -a -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule

	touch $conf
	db_get conserver-client/server
	if ! grep -q CONSERVER $conf; then
		echo "CONSERVER=$RET" >> $conf
	else
		perl -pi -e "s/=.*/=$RET/ if /CONSERVER/" $conf
	fi
	db_get conserver-client/port
	if ! grep -q PORT $conf; then
		echo "PORT=$RET" >> $conf
	else
		perl -pi -e "s/=.*/=$RET/ if /PORT/" $conf
	fi
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#