Mercurial > masqmail-0.2
diff debian/masqmail.config @ 1:af25f5c39d90 0.2.21-4
added diff from debian (masqmail-0.2.21-4)
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 20:56:23 +0200 |
parents | 08114f7dcc23 |
children |
line wrap: on
line diff
--- a/debian/masqmail.config Fri Sep 26 17:05:23 2008 +0200 +++ b/debian/masqmail.config Fri Sep 26 20:56:23 2008 +0200 @@ -8,29 +8,6 @@ # This conf script is capable of backing up db_capb backup -if [ x"$1" = x"configure" ] ; then - if [ -n $2 ] ; then - if dpkg --compare-versions "$2" lt "0.2.10-0.2" ; then - PCMCIA_SCRIPT_UP=/etc/pcmcia/ip-up.d/1masqmail - PCMCIA_SCRIPT_DOWN=/etc/pcmcia/ip-down.d/99masqmail - if [ -x $PCMCIA_SCRIPT_UP ] || [ -x $PCMCIA_SCRIPT_DOWN ] ; then - chmod -x $PCMCIA_SCRIPT_UP $PCMCIA_SCRIPT_DOWN - db_input high masqmail/note_pcmcia_scripts || true; - db_go - fi - fi - fi -fi - -if [ x"$1" = x"configure" ] ; then - if [ -n $2 ] ; then - if dpkg --compare-versions "$2" lt "0.2.17-1" ; then - db_input medium masqmail/note_moved_tpl || true; - db_go - fi - fi -fi - # shamelessly copied from xserver-common.config. # Thanks to Branden. :-) @@ -172,9 +149,6 @@ fi done -db_input medium masqmail/you_are_not_finished || true -db_go - # dpkg-reconfigure does not stop services: # (cause of Bug#151528) # in debhelper version < 1.2.9 @@ -183,8 +157,12 @@ if dpkg --compare-versions $DH_VERSION lt "1.2.9" ; then if [ x"$1" = x"reconfigure" ] ; then - if [ -x "/etc/init.d/masqmail" ]; then - /etc/init.d/masqmail stop || true + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d masqmail stop + else + if [ -x "/etc/init.d/masqmail" ]; then + /etc/init.d/masqmail stop || true + fi fi fi fi