determine SEEDDMS_HOME if not explicitly set

This commit is contained in:
Uwe Steinmann 2020-05-20 20:54:34 +02:00
parent 1b8e7883d1
commit 2d97c204a8

View File

@ -1,6 +1,9 @@
#!/bin/sh
if [ -z ${SEEDDMS_HOME+x} ]; then
echo "Please set SEEDDMS_HOME before running this script";
exit 1;
parentdir=$(dirname "$0")
export SEEDDMS_HOME=$(dirname "$parentdir")
# echo "Setting SEEDDMS_HOME to:" $SEEDDMS_HOME
# echo "Please set SEEDDMS_HOME before running this script";
# exit 1;
fi
php -f ${SEEDDMS_HOME}/utils/schedulercli.php -- "$@"