This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
qmi-cloud/shell-utils/checkstop.sh
Manuel Romero 2fe3ff5a0d echo
2020-05-28 10:36:30 +02:00

22 lines
352 B
Bash
Executable File

BASEDIR=$(dirname "$0")
d=`date`
echo "------ $d"
echo "------ TYPE: $1"
if [ -z "$MONGO_URI" ]
then
echo "\$MONGO_URI is empty"
exit
else
echo "\$MONGO_URI=$MONGO_URI"
fi
if [ -z "$API_KEY" ]
then
echo "\$API_KEY is empty"
exit
else
echo "\$API_KEY=$API_KEY"
fi
node $BASEDIR/../server/cronjobs/stop5.js $1 $2 $3