Browse Source

Fixed broken upgrade if no bind daemon is running at all.

Christoph Schug 24 years ago
parent
commit
5436237d81
1 changed files with 5 additions and 3 deletions
  1. 5 3
      bind8/bind8.spec

+ 5 - 3
bind8/bind8.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [REL]
 Group:        DNS
 License:      GPL
 Version:      8.3.3
-Release:      20020704
+Release:      20020710
 
 #   list of sources
 Source0:      ftp://ftp.isc.org/isc/bind/src/%{version}/bind-src.tar.gz
@@ -170,14 +170,16 @@ Conflicts:    bind
     if [ $1 -gt 1 ]; then
         #   stop daemon before any upgrade
         ls >/dev/null 2>&1 $RPM_INSTALL_PREFIX/var/bind/ndc \
-            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
+            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1 \
+            || true
     fi
 
 %preun
     if [ $1 -eq 0 ]; then
         #   stop daemon before removing package
         ls >/dev/null 2>&1 $RPM_INSTALL_PREFIX/var/bind/ndc \
-            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
+            && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1 \
+            || true
         #   remove dynamically generated files
         rm -f $RPM_INSTALL_PREFIX/var/bind/*
     fi