From 5fe5c0d990ada195348a3b1495439e38dcd19640 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Fri, 28 Mar 2014 08:11:55 +0100 Subject: [PATCH] Updated the run script to work. --- example/run.sh | 12 +++++++++--- example/sp-wsgi/{conf.py => conf.py.example} | 2 -- 2 files changed, 9 insertions(+), 5 deletions(-) rename example/sp-wsgi/{conf.py => conf.py.example} (91%) diff --git a/example/run.sh b/example/run.sh index cdf4ce5..21c95d5 100755 --- a/example/run.sh +++ b/example/run.sh @@ -1,12 +1,18 @@ #!/bin/sh -cd sp -../../tools/make_metadata.py sp_conf > sp.xml +cd sp-wsgi +if [ ! -f conf.py ] ; then + cp conf.py.example conf.py +fi +../../tools/make_metadata.py conf > sp.xml cd ../idp2 +if [ ! -f idp_conf.py ] ; then + cp idp_conf.py.example conf.py +fi ../../tools/make_metadata.py idp_conf > idp.xml -cd ../sp +cd ../sp-wsgi ./sp.py sp_conf & cd ../idp2 diff --git a/example/sp-wsgi/conf.py b/example/sp-wsgi/conf.py.example similarity index 91% rename from example/sp-wsgi/conf.py rename to example/sp-wsgi/conf.py.example index b821e6d..14f9062 100644 --- a/example/sp-wsgi/conf.py +++ b/example/sp-wsgi/conf.py.example @@ -35,7 +35,5 @@ CONFIG = { "cert_file": "pki/mycert.pem", "xmlsec_binary": xmlsec_path, "metadata": {"local": ["../idp2/idp.xml"]}, - #"metadata": {"mdfile": ["./swamid2.md"]}, - #"metadata": {"local": ["./swamid-2.0.xml"]}, "name_form": NAME_FORMAT_URI, }