HEX
Server: Apache
System: Linux iad1-shared-b8-22 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: dh_7uh9vd (6523960)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/slrn.postinst
#!/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

	db_get shared/mailname
	echo "$RET" > /etc/mailname

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

	db_get slrn/getdescs_now
	if [ "$RET" = true ]; then
		slrn_getdescs || true
	fi
fi