[cpp-sp] 05/07: Create /var/cache/shibboleth on install and remove it on purge

Scott Cantor cantor.2 at osu.edu
Thu Dec 20 19:46:34 EST 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to annotated tag debian/2.5.2+dfsg-1
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=fbc93a0691685e35fcfa5abb8851baae7abbe180

commit fbc93a0691685e35fcfa5abb8851baae7abbe180
Author: Russ Allbery <rra at debian.org>
AuthorDate: Tue Jun 18 15:18:30 2013 -0700

    Create /var/cache/shibboleth on install and remove it on purge
---
 debian/changelog                     | 1 +
 debian/libapache2-mod-shib2.postinst | 6 ++++++
 debian/libapache2-mod-shib2.postrm   | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

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#

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list