File: postinst

package info (click to toggle)
trn 3.6-13
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 1,620 kB
  • ctags: 1,535
  • sloc: ansic: 25,214; sh: 4,637; makefile: 1,032; yacc: 660
file content (33 lines) | stat: -rw-r--r-- 542 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
30
31
32
33
#! /bin/sh

case "$1" in
	configure)
		;;
	abort-upgrade|abort-remove|abort-deconfigure)
		exit 0
		;;
esac
umask 022

set -e
cd /etc

test -f news/server && exit 0

if ! test -d news
then
	mkdir news
	chown news:news news
	chmod 755 news
fi

echo -n \
'Trn is configured to read news via a NNTP connection. If
you have a local news spool, you should consider installing
nntpd; enter \"localhost\" below in that case.
What news server (NNTP server) should I use for reading
 - enter its full name: '

read server

echo "$server" >news/server