tags 699616 + pending
thanks

Dear maintainer,

I've prepared an NMU for gosa (versioned as 2.7.4-4.2) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.

-- 
Jonathan Wiltshire                                      j...@debian.org
Debian Developer                         http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC  74C3 5394 479D D352 4C51

<directhex> i have six years of solaris sysadmin experience, from
            8->10. i am well qualified to say it is made from bonghits
                        layered on top of bonghits
diff -Nru gosa-2.7.4/debian/changelog gosa-2.7.4/debian/changelog
--- gosa-2.7.4/debian/changelog	2013-01-27 14:15:25.000000000 +0000
+++ gosa-2.7.4/debian/changelog	2013-02-07 20:28:31.000000000 +0000
@@ -1,3 +1,14 @@
+gosa (2.7.4-4.2) unstable; urgency=low
+
+  [ Jonathan Wiltshire ]
+  * Non-maintainer upload.
+
+  [ Vagrant Cascadian ]
+  * debian/gosa.postinst, debian/gosa.postrm: Only restart apache2 or lighttpd
+    when binary is present. (Closes: #699616)
+
+ -- Jonathan Wiltshire <j...@debian.org>  Thu, 07 Feb 2013 20:28:29 +0000
+
 gosa (2.7.4-4.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru gosa-2.7.4/debian/gosa.postinst gosa-2.7.4/debian/gosa.postinst
--- gosa-2.7.4/debian/gosa.postinst	2013-01-27 12:28:42.000000000 +0000
+++ gosa-2.7.4/debian/gosa.postinst	2013-02-07 20:27:07.000000000 +0000
@@ -59,11 +59,13 @@
   fi
 
   # Finally restart servers
+  if [ -x /usr/sbin/apache2 ]; then
   if [ -x /usr/sbin/invoke-rc.d ]; then
     invoke-rc.d apache2 reload
   else
     /etc/init.d/apache2 reload
   fi
+  fi
 fi
 
 if [ -d /etc/lighttpd/conf-available ]; then
@@ -85,11 +87,13 @@
   fi
 
   # Finally restart servers
+  if [ -x /usr/sbin/lighttpd ]; then
   if [ -x /usr/sbin/invoke-rc.d ]; then
     invoke-rc.d lighttpd reload
   else
     /etc/init.d/lighttpd reload
   fi
+  fi
 
 fi
 
diff -Nru gosa-2.7.4/debian/gosa.postrm gosa-2.7.4/debian/gosa.postrm
--- gosa-2.7.4/debian/gosa.postrm	2012-06-19 07:47:42.000000000 +0100
+++ gosa-2.7.4/debian/gosa.postrm	2013-02-07 20:27:07.000000000 +0000
@@ -27,11 +27,13 @@
           [ -L /etc/apache2/conf.d/gosa.conf ] && rm -f /etc/apache2/conf.d/gosa.conf
 
           # Restart servers
+          if [ -x /usr/sbin/apache2 ]; then
           if [ -x /usr/sbin/invoke-rc.d ]; then
             invoke-rc.d apache2 restart
           else
             /etc/init.d/apache2 restart
           fi
+          fi
         fi
 
         if [ -d /etc/lighttpd/conf-available ]; then
@@ -39,11 +41,13 @@
           [ -L /etc/lighttpd/conf-enabled/99gosa-lighttpd.conf ] && rm -f /etc/lighttpd/conf-enabled/99gosa-lighttpd.conf
 
           # Restart servers
+          if [ -x /usr/sbin/lighttpd ]; then
           if [ -x /usr/sbin/invoke-rc.d ]; then
             invoke-rc.d lighttpd restart
           else
             /etc/init.d/lighttpd restart
           fi
+          fi
         fi
         
         ;;

Attachment: signature.asc
Description: Digital signature

Reply via email to