some safety to help users

parent c92fa9d1
...@@ -5,11 +5,15 @@ ...@@ -5,11 +5,15 @@
COMMAND=$@ COMMAND=$@
echo "REP_BASE_PROD: ${REP_BASE_PROD:?please set this variable to the current data location}" echo "REP_BASE_PROD: ${REP_BASE_PROD:?please set this variable to the current data location}"
echo "CURRENT_IC: ${CURRENT_IC:?please set this variable to the current IC location}" echo "CURRENT_IC: ${CURRENT_IC:?please set this variable to the current IC location (could be REP_BASE_PROD, but we would not like to assume...)}"
echo "using WORKDIR: ${WORKDIR:=$PWD}" echo "using WORKDIR: ${WORKDIR:=$PWD}"
mkdir -pv $WORKDIR for directory in "$REP_BASE_PROD/scw" "$REP_BASE_PROD/aux" "$CURRENT_IC/ic" "$CURRENT_IC/idx" "$WORKDIR"; do
[ -d $directory ] || { echo "directory \"$directory\" should exist"; exit 1; }
done
[ -s /tmp/.X11-unix ] || { echo "no /tmp/.X11-unix? no X? not allowed!"; }
mkdir -pv $WORKDIR/pfiles mkdir -pv $WORKDIR/pfiles
docker run \ docker run \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment