Skip to content

Commit 692aaac

Browse files
author
Roland Hedberg
committed
Updated the run script to work. Also changed the name of the script and its working. Updated README.
1 parent 5fe5c0d commit 692aaac

File tree

3 files changed

+42
-23
lines changed

3 files changed

+42
-23
lines changed

example/README

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ To make it easy, for me :-), both the IdP and the SP uses the same keys.
2121

2222
To run the setup do
2323

24-
./run.sh
24+
./all.sh start
2525

2626
and then use your favourit webbrowser to look at "http://localhost:8087/whoami"
27+
28+
./all stop
29+
30+
will of course stop your IdP and SP.

example/all.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
startme() {
4+
cd sp-wsgi
5+
if [ ! -f conf.py ] ; then
6+
cp conf.py.example conf.py
7+
fi
8+
../../tools/make_metadata.py conf > sp.xml
9+
10+
cd ../idp2
11+
if [ ! -f idp_conf.py ] ; then
12+
cp idp_conf.py.example conf.py
13+
fi
14+
../../tools/make_metadata.py idp_conf > idp.xml
15+
16+
cd ../sp-wsgi
17+
./sp.py conf &
18+
19+
cd ../idp2
20+
./idp.py idp_conf &
21+
22+
cd ..
23+
}
24+
25+
stopme() {
26+
pkill -f "sp.py"
27+
pkill -f "idp.py"
28+
}
29+
30+
case "$1" in
31+
start) startme ;;
32+
stop) stopme ;;
33+
restart) stopme; startme ;;
34+
*) echo "usage: $0 start|stop|restart" >&2
35+
exit 1
36+
;;
37+
esac

example/run.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)