diff --git a/utils/seeddms-adddoc b/utils/seeddms-adddoc index 3f7d16b0b..b091f179e 100755 --- a/utils/seeddms-adddoc +++ b/utils/seeddms-adddoc @@ -1,2 +1,6 @@ #!/bin/sh -/usr/bin/php -f /usr/share/seeddms/utils/adddoc.php -- $* +if [ -z ${SEEDDMS_HOME+x} ]; then + echo "Please set SEEDDMS_HOME before running this script"; + exit 1; +fi +php -f ${SEEDDMS_HOME}/utils/adddoc.php -- $* diff --git a/utils/seeddms-createfolder b/utils/seeddms-createfolder index e1aca29ea..b7f96d9da 100755 --- a/utils/seeddms-createfolder +++ b/utils/seeddms-createfolder @@ -1,2 +1,6 @@ #!/bin/sh -/usr/bin/php -f /usr/share/seeddms/utils/createfolder.php -- $* +if [ -z ${SEEDDMS_HOME+x} ]; then + echo "Please set SEEDDMS_HOME before running this script"; + exit 1; +fi +php -f ${SEEDDMS_HOME}/utils/createfolder.php -- $* diff --git a/utils/seeddms-indexer b/utils/seeddms-indexer index 59190069e..51719c94f 100755 --- a/utils/seeddms-indexer +++ b/utils/seeddms-indexer @@ -1,2 +1,6 @@ #!/bin/sh -/usr/bin/php -f /usr/share/seeddms/utils/indexer.php -- $* +if [ -z ${SEEDDMS_HOME+x} ]; then + echo "Please set SEEDDMS_HOME before running this script"; + exit 1; +fi +php -f ${SEEDDMS_HOME}/utils/indexer.php -- $* diff --git a/utils/seeddms-xmldump b/utils/seeddms-xmldump index 62acd34e1..9ce43235c 100755 --- a/utils/seeddms-xmldump +++ b/utils/seeddms-xmldump @@ -1,2 +1,6 @@ #!/bin/sh -/usr/bin/php -f /usr/share/seeddms/utils/xmldump -- $* +if [ -z ${SEEDDMS_HOME+x} ]; then + echo "Please set SEEDDMS_HOME before running this script"; + exit 1; +fi +php -f ${SEEDDMS_HOME}/utils/xmldump -- $*