Mercurial > noffle
diff debian/postinst @ 325:c36eb2596531 noffle
[svn] fixed inclusion of db_*
author | godisch |
---|---|
date | Sun, 23 Feb 2003 15:16:46 +0000 |
parents | 5ec39beae9c5 |
children | 56c3a43af1d5 |
line wrap: on
line diff
--- a/debian/postinst Sat Feb 22 21:54:34 2003 +0000 +++ b/debian/postinst Sun Feb 23 15:16:46 2003 +0000 @@ -1,10 +1,13 @@ #!/bin/sh -# $Id: postinst 459 2003-02-22 21:54:34Z godisch $ +# $Id: postinst 460 2003-02-23 15:16:46Z godisch $ set -e [ "$1" = configure ] || exit 0 +. /usr/share/debconf/confmodule +db_version 2.0 + server_config=/etc/news/noffle.conf debian_config=/etc/default/noffle @@ -32,9 +35,6 @@ mv -f /etc/noffle.conf.old $server_config.old 2> /dev/null || : fi -. /usr/share/debconf/confmodule -db_version 2.0 - db_get noffle/debconf || RET="" if [ "$RET" != false ]; then db_get noffle/port || RET="" @@ -87,7 +87,6 @@ mv -f $server_config.new $server_config mv -f $debian_config.new $debian_config fi -db_stop # sanity checks chown -R news:news /var/lock/noffle /var/spool/noffle @@ -111,4 +110,5 @@ sleep 2 fi +db_stop exit 0