update default vars definition in scripts
This commit is contained in:
parent
0bb1ffd86e
commit
5bd1a43e31
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue