postinst is in tin 1:2.2.0-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 | #!/bin/sh -e
. /usr/share/debconf/confmodule
# make sure /etc/news is created
[ -d /etc/news ] || mkdir /etc/news
# Old versions made this file, we have to leave it in so other newsreaders
# still function ok, but we will make it a symlink to /etc/news/server.
# First, get rid of it, and replace it with /etc/news/server. It's pretty
# ugly because we used to do the exact opposite so /etc/news/server may be
# a sylmlink to /etc/nntpserver.
if [ -f /etc/news/server -a -f /etc/nntpserver -a ! -L /etc/news/server ]; then
rm -f /etc/nntpserver
fi
if [ -f /etc/news/server -a -f /etc/nntpserver -a -L /etc/news/server ]; then
rm -f /etc/news/server
mv /etc/nntpserver /etc/news/server
fi
if [ -f /etc/nntpserver -a ! -f /etc/news/server ]; then
mv /etc/nntpserver /etc/news/server
fi
db_get shared/news/server
if [ "$RET" ]; then
echo "$RET" > /etc/news/server
fi
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
|