X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=postinstall;h=da3f9ecb678e143e108cfbe3717e90b3df7c0fa5;hp=49b5f30946aa140849efe15f1dbba0883660a5d8;hb=c9e0e2dc2e15d2004333db7f135947db13956b5e;hpb=b935d790431cfaf218446c1f3b42272ffdda5f5c diff --git a/postinstall b/postinstall index 49b5f30..da3f9ec 100644 --- a/postinstall +++ b/postinstall @@ -1,17 +1,17 @@ -#!/bin/sh - -cd ${CLIENT_BASEDIR}/share/xml/opensaml - -sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" saml10-catalog.xml > catalog.xml.tmp -mv catalog.xml.tmp saml10-catalog.xml -chmod 644 saml10-catalog.xml - -sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" saml11-catalog.xml > catalog.xml.tmp -mv catalog.xml.tmp saml11-catalog.xml -chmod 644 saml11-catalog.xml - -sed "s|uri=\".*${CLIENT_BASEDIR}|uri=\"${CLIENT_BASEDIR}|1" saml20-catalog.xml > catalog.xml.tmp -mv catalog.xml.tmp saml20-catalog.xml -chmod 644 saml20-catalog.xml - -exit 0 +#!/bin/sh + +cd ${CLIENT_BASEDIR}/share/xml/opensaml + +sed "s|uri=\".*/share/xml/opensaml/\(.*\)\"|uri=\"${CLIENT_BASEDIR}/share/xml/opensaml/\1\"|1" saml10-catalog.xml > catalog.xml.tmp +mv catalog.xml.tmp saml10-catalog.xml +chmod 644 saml10-catalog.xml + +sed "s|uri=\".*/share/xml/opensaml/\(.*\)\"|uri=\"${CLIENT_BASEDIR}/share/xml/opensaml/\1\"|1" saml11-catalog.xml > catalog.xml.tmp +mv catalog.xml.tmp saml11-catalog.xml +chmod 644 saml11-catalog.xml + +sed "s|uri=\".*/share/xml/opensaml/\(.*\)\"|uri=\"${CLIENT_BASEDIR}/share/xml/opensaml/\1\"|1" saml20-catalog.xml > catalog.xml.tmp +mv catalog.xml.tmp saml20-catalog.xml +chmod 644 saml20-catalog.xml + +exit 0