Skip to content

Commit

Permalink
Merge pull request #174 from epackorigan/epackorigan-search_maint-fix
Browse files Browse the repository at this point in the history
making search_maint.sh path independent
  • Loading branch information
grahamgilbert authored Jan 19, 2018
2 parents 7abc812 + ae0eb3a commit fdf69c0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup/search_maint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash

cd /usr/local/sal_install/sal
export PYTHONPATH=/usr/local/sal_install/sal/sal:$PYTHONPATH
SAL_MAINT=`dirname $0`
SAL_PATH=`(cd $SAL_MAINT/../.. && pwd)`
cd $SAL_PATH/sal
export PYTHONPATH=$SAL_PATH/sal/sal:$PYTHONPATH
export DJANGO_SETTINGS_MODULE='sal.settings'

/usr/local/sal_install/sal_env/bin/python manage.py search_maintenance
$SAL_PATH/sal_env/bin/python manage.py search_maintenance

0 comments on commit fdf69c0

Please sign in to comment.