Skip to content
Snippets Groups Projects
Verified Commit 668cd2e3 authored by David Hoese's avatar David Hoese
Browse files

Fix log and lock directory names in new environment

parent 030de998
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ DATE=$1
if [ -z "$DATE" ]; then
DATE=`date +%Y%m%d`
fi
LOCK="${ENV}/locks/${SCRIPT_NAME}.lock"
LOCK="${LOCKDIR}/${SCRIPT_NAME}.lock"
logfile="${LOGDIR}/${SCRIPT_NAME}.log"
if [ ! -d $LOGDIR ]; then
......
......@@ -114,6 +114,8 @@ for file_suffix in $FILE_SUFFIXES; do
cp $header_fn $input_file
else
# loggernet doesn't like empty destination files
# this could have been from a permissions issue during testing
# but I'm not going to change it now that it is working
rm $input_file
fi
......
......@@ -11,7 +11,9 @@ export TOWER_CACHE_DIR="${DATA_ROOT}/cache/aoss/tower"
# Python environment to use and where scripts are location
export ENV=/opt/metobs/aoss_tower
# Directory where logs will be stored
export LOGDIR=$ENV/logs
export LOGDIR=$ENV/log
# Directory where lock files will be stored
export LOCKDIR=$ENV/lock
# Directory where work files can be placed (inside a separate temp directory)
export WORKDIR="${DATA_ROOT}/tmp"
......
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