[SCM] Debian packaging for the 2.0 Apache Shibboleth SP branch, master, updated. debian/2.5.1+dfsg-1-7-gbb96e1f
Russ Allbery
rra at debian.org
Tue Jun 18 23:57:02 UTC 2013
The following commit has been merged in the master branch:
commit fbc93a0691685e35fcfa5abb8851baae7abbe180
Author: Russ Allbery <rra at debian.org>
Date: Tue Jun 18 15:18:30 2013 -0700
Create /var/cache/shibboleth on install and remove it on purge
diff --git a/debian/changelog b/debian/changelog
index cac8c50..0e8cecc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,7 @@ shibboleth-sp2 (2.5.2+dfsg-1) UNRELEASED; urgency=low
* Update README.Debian instructions to add AuthType None to the URLs
that have to be available to everyone and to use Require shib-session
instead of Require valid-user.
+ * Create /var/cache/shibboleth on install and remove it on purge.
-- Russ Allbery <rra at debian.org> Tue, 18 Jun 2013 11:13:01 -0700
diff --git a/debian/libapache2-mod-shib2.postinst b/debian/libapache2-mod-shib2.postinst
index 1e14f74..a947f6b 100755
--- a/debian/libapache2-mod-shib2.postinst
+++ b/debian/libapache2-mod-shib2.postinst
@@ -11,6 +11,12 @@ if [ "$1" = "configure" ] ; then
fi
fi
+# Create the cache directory owned by the shibd user.
+if [ ! -d /var/cache/shibboleth ] ; then
+ mkdir /var/cache/shibboleth
+ chown _shibd:_shibd /var/cache/shibboleth
+fi
+
#DEBHELPER#
exit 0
diff --git a/debian/libapache2-mod-shib2.postrm b/debian/libapache2-mod-shib2.postrm
index 976e04f..e5ca865 100755
--- a/debian/libapache2-mod-shib2.postrm
+++ b/debian/libapache2-mod-shib2.postrm
@@ -3,7 +3,7 @@
set -e
if [ "$1" = purge ] || [ "$1" = remove ] ; then
- rm -rf /var/run/shibboleth
+ rm -rf /var/cache/shibboleth /var/run/shibboleth
fi
#DEBHELPER#
--
Debian packaging for the 2.0 Apache Shibboleth SP
More information about the Pkg-shibboleth-devel
mailing list