Package: libapache2-mod-shib2
Version: 3.0.4+dfsg1-1
User: [email protected]
Usertags: colis-shparser
Tags: patch

Hi,

the preinst script is a #!/bin/sh script but is is not posix compliant
since posix does not allow for the body of a function to be a simple
command. The attached patch fixes this.

-Ralf.
--- preinst	2019-03-16 20:51:16.000000000 +0100
+++ preinst-fixed	2019-03-19 12:21:50.039834586 +0100
@@ -11,7 +11,7 @@
 		apache2_msg info "libapache2-mod-shib2: faking a postrm purge for apache2_invoke"
 		APACHE2_MAINTSCRIPT_NAME=postrm
 		APACHE2_MAINTSCRIPT_METHOD=purge
-		apache2_needs_action() false # do not restart or reload Apache
+		apache2_needs_action() { false } # do not restart or reload Apache
 		apache2_invoke disconf shib2
 		apache2_invoke dismod  shib2
 	)

Reply via email to