update default vars definition in scripts

This commit is contained in:
Thomas NOËL 2013-07-18 18:23:55 +02:00
parent 0bb1ffd86e
commit 5bd1a43e31
2 changed files with 10 additions and 6 deletions

View File

@ -1,10 +1,12 @@
#!/bin/sh
MYDIR=$(dirname $(readlink -f $0))
GEOURLS="https://static.discojuice.org/feeds/renater http://isos.univnautes.entrouvert.com/univnautes.geo"
GEODIR="/var/tmp/univcloud-geo/"
VIRTUAL_ENV="/home/thomas/univcloud/venv/"
PYTHONPATH="/home/thomas/univcloud/"
LOGINHTML="/home/thomas/univcloud/univcloud/templates/univcloud/idplist.html"
PYTHONPATH=$MYDIR/../
VIRTUAL_ENV=${PYTHONPATH}"venv/"
LOGINHTML=${PYTHONPATH}"univcloud/templates/univcloud/idplist.html"
if [ -r /etc/univcloud.conf ]
then
@ -53,6 +55,6 @@ then
fi
# create indexhtml
python univcloud-geo2idp.py $GEOFILES > $LOGINHTML
python $MYDIR/univcloud-geo2idp.py $GEOFILES > $LOGINHTML
exit 0

View File

@ -1,11 +1,13 @@
#!/bin/sh
MYDIR=$(dirname $(readlink -f $0))
MD=/var/tmp/univcloud-metadata
MDURL="https://services-federation.renater.fr/metadata/renater-test-metadata.xml"
MDCA=
MDCRT=
VIRTUAL_ENV="/home/thomas/univcloud/venv"
MANAGE="/home/thomas/univcloud/manage.py"
VIRTUAL_ENV=${MYDIR}/../venv/
MANAGE=${MYDIR}/../manage.py
if [ -r /etc/univcloud.conf ]
then