File: slrnpull.postinst

package info (click to toggle)
slrn 1.0.3%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,396 kB
  • sloc: ansic: 39,852; sh: 3,777; perl: 467; makefile: 229; sed: 16
file content (23 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

# Yes, this uses debconf.
. /usr/share/debconf/confmodule

if [ "$1" = configure ]; then
	# Always update the files; the config script makes sure ths
	# variables always have a sane and current value in them.

	db_get shared/news/server
	echo "$RET" > /etc/news/server

        file=/etc/default/slrnpull
        if test -e $file
        then
            db_get slrnpull/run_from
            sed -i -e "/^[^#]*RUNFROM=/s/=.*/='$RET'/" $file
        fi
fi

#DEBHELPER#