Skip to content
Snippets Groups Projects
Commit 80e9d3dd authored by Jameson Rollins's avatar Jameson Rollins
Browse files

support: check SITE/IFO vars in module wrapper script

parent 40d828bf
No related branches found
No related tags found
1 merge request!112support: update wrapper scripts to check SITE/IFO and export TARGET vars
......@@ -3,9 +3,17 @@
cmd="$1"
sys="$2"
if [ -z "$sys" ] ; then
echo "usage: $(basename $0) start|stop <sys>"
echo "usage: $(basename $0) start|stop <sys>" >&2
exit 1
fi
if [ -z "$SITE" ] ; then
echo "SITE variable not specified." >&2
exit 2
fi
if [ -z "$IFO" ] ; then
echo "IFO variable not specified." >&2
exit 2
fi
TARGET=/opt/rtcds/${SITE,,*}/${IFO,,*}
case $cmd in
start)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment