Commit ebbf5abb authored by Moritz Schlarb's avatar Moritz Schlarb

Replace postinst script by dh_fixperms

parent 859da780
......@@ -8,6 +8,7 @@ Priority: optional
Homepage: https://github.com/pingidentity/mod_auth_openidc
Vcs-Git: https://salsa.debian.org/debian/libapache2-mod-auth-openidc.git
Vcs-Browser: https://salsa.debian.org/debian/libapache2-mod-auth-openidc
Rules-Requires-Root: binary-targets
Package: libapache2-mod-auth-openidc
Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el alpha hppa hurd-i386 kfreebsd-amd64 kfreebsd-i386 m68k powerpc x32
......
# cf. #796285
libapache2-mod-auth-openidc: apache2-module-depends-on-real-apache2-package apache2-bin
libapache2-mod-auth-openidc: non-standard-dir-perm var/cache/apache2/mod_auth_openidc/ 0700 != 0755
libapache2-mod-auth-openidc: non-standard-dir-perm var/cache/apache2/mod_auth_openidc/metadata/ 0700 != 0755
#!/bin/sh
# postinst script for libapache2-mod-auth-openidc
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
chown -R www-data /var/cache/apache2/mod_auth_openidc
chmod -R go= /var/cache/apache2/mod_auth_openidc
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
......@@ -15,4 +15,9 @@
override_dh_installchangelogs:
dh_installchangelogs ChangeLog upstream
override_dh_fixperms:
dh_fixperms
chown -R www-data:www-data debian/libapache2-mod-auth-openidc/var/cache/apache2/mod_auth_openidc
chmod -R go= debian/libapache2-mod-auth-openidc/var/cache/apache2/mod_auth_openidc
override_dh_auto_install:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment