check for env variabel SEEDDMS_HOME

This commit is contained in:
Uwe Steinmann 2016-01-19 15:24:23 +01:00
parent 77ee1546d5
commit e0ae06441e
4 changed files with 20 additions and 4 deletions

View File

@ -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 -- $*

View File

@ -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 -- $*

View File

@ -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 -- $*

View File

@ -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 -- $*