mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
determine SEEDDMS_HOME if not explicitly set
This commit is contained in:
parent
1b8e7883d1
commit
2d97c204a8
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -z ${SEEDDMS_HOME+x} ]; then
|
if [ -z ${SEEDDMS_HOME+x} ]; then
|
||||||
echo "Please set SEEDDMS_HOME before running this script";
|
parentdir=$(dirname "$0")
|
||||||
exit 1;
|
export SEEDDMS_HOME=$(dirname "$parentdir")
|
||||||
|
# echo "Setting SEEDDMS_HOME to:" $SEEDDMS_HOME
|
||||||
|
# echo "Please set SEEDDMS_HOME before running this script";
|
||||||
|
# exit 1;
|
||||||
fi
|
fi
|
||||||
php -f ${SEEDDMS_HOME}/utils/schedulercli.php -- "$@"
|
php -f ${SEEDDMS_HOME}/utils/schedulercli.php -- "$@"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user