On Fri, Nov 14, 2014 at 15:05:26 +0100, Jean Baptiste Favre wrote:

> Hi,
> I modified both postinst and postrm scripts so that package can be
> installed without errors with Apache2 2.4.
> 
> Please find patch attached,
> Regards,
> Jean Baptiste

> diff -Nru phamm-0.6.2/debian/changelog phamm-0.6.2/debian/changelog
> --- phamm-0.6.2/debian/changelog      2014-07-15 08:04:53.000000000 +0200
> +++ phamm-0.6.2/debian/changelog      2014-11-14 14:59:35.000000000 +0100
> @@ -1,3 +1,10 @@
> +phamm (0.6.2-1.1) UNRELEASED; urgency=medium
> +
> +  * Non-maintainer upload.
> +  * Fix postinst and postrm scripts to follow apache2 2.4 migration (Closes: 
> #669841)
> +
> + --  <deb...@jbfavre.org>  Fri, 14 Nov 2014 14:54:18 +0100
> +
>  phamm (0.6.2-1) unstable; urgency=low
>  
>    * New upstream release (Closes: #750518)
> diff -Nru phamm-0.6.2/debian/phamm.postinst phamm-0.6.2/debian/phamm.postinst
> --- phamm-0.6.2/debian/phamm.postinst 2010-03-29 15:50:59.000000000 +0200
> +++ phamm-0.6.2/debian/phamm.postinst 2014-11-14 14:43:44.000000000 +0100
> @@ -128,8 +128,10 @@
>                  ;;
>          esac
>  
> -        if [ ! -f /etc/$webserver/conf.d/phamm ] && [ ! -h 
> /etc/$webserver/conf.d/phamm ]; then
> -            ln -s /etc/phamm/apache.conf /etc/$webserver/conf.d/phamm
> +        if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
> +            . /usr/share/apache2/apache2-maintscript-helper
> +            ln -sf /etc/phamm/apache.conf 
> /etc/apache2/conf-available/phamm.conf
> +            apache2_invoke enconf phamm.conf || exit $?
>           restart="$restart $webserver"
>          fi
>      done

Shouldn't something be done on upgrade about the /etc/$webserver/conf.d/phamm
symlink added by previous versions?

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature

Reply via email to