diff options
author | Pjotr Prins | 2016-10-07 07:05:22 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-10-07 07:05:22 +0000 |
commit | 9e4c8f01e1a0aa49d218f7909ed5b7979ffc6fb9 (patch) | |
tree | 7033440d3325b180c692a692d22d7afee4c6c47a /bin | |
parent | 28da8f4304f406b4eff5ad68757735a0cb524e94 (diff) | |
download | genenetwork2-9e4c8f01e1a0aa49d218f7909ed5b7979ffc6fb9.tar.gz |
Saner handling of TMPDIR and TEMPDIR
Throw error when TMPDIRs are not writable
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/genenetwork2 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2 index d7d1c325..b2de4c95 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -79,13 +79,13 @@ fi # We may change this one: export PYTHONPATH=$GN2_BASE_DIR/wqflask:$PYTHONPATH -# TEMPDIR defaults to /tmp if nothing else -if [ -z $TEMPDIR ]; then - TEMPDIR="/tmp" +# Our UNIX TMPDIR defaults to /tmp - change this on a shared server +if [ -z $TMPDIR ]; then + TMPDIR="/tmp" fi set|grep $GN2_PROFILE -set|grep TEMPDIR +set|grep TMPDIR # Now handle command parameter -c if [ "$1" = '-c' ] ; then @@ -98,7 +98,7 @@ if [ "$1" = '-c' ] ; then fi echo "Starting the redis server:" -echo -n "dir $TEMPDIR +echo -n "dir $TMPDIR dbfilename gn2.rdb " | redis-server - & |