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

Cleanup log directory setup in archive script

parent 95a1616b
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,8 @@ directory or ``/opt/miniforge_YYYYMMDD`` directory.
2. Clone the git repository into the environment and other setup::
cd /opt/metobs/aoss_ceilo
sudo mkdir -p repos/git log locks
sudo chown metobs:metobsgrp log locks
sudo mkdir -p repos/git log lock
sudo chown metobs:metobsgrp log lock
sudo git clone "https://gitlab.ssec.wisc.edu/metobs/AossCeilo.git" repos/git/AossCeilo
sudo ln -s repos/git/AossCeilo/scripts .
sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MetObsCommon.git" repos/git/MetObsCommon
......
......@@ -4,10 +4,9 @@
SCRIPT_HOME="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Assumes this script is in /opt/*/aoss_ceilo*/repos/git/AossCeilo/scripts/
ENV="$(realpath $(realpath ${SCRIPT_HOME})/../../../../)"
LOGDIR=$ENV/log
LOCK=$ENV/lock/$(basename $0).lock
source $ENV/scripts/metobs_config.sh
LOCK=${LOCKDIR}/$(basename $0).lock
(
flock -x -n 200 || exit $?
......
#
# These values should override values used in python or bash scripts
#
SCRIPT_HOME="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Assumes this script is in /opt/*/aoss_ceilo*/repos/git/AossCeilo/scripts/
ENV="$(realpath $(realpath ${SCRIPT_HOME})/../../../../)"
# where the ceilo ascii files get pushed to
DATA_ROOT=${DATA_ROOT:-"/data1"}
export CEILO_INCOMING_DIR="${DATA_ROOT}/incoming/aoss/ceilo"
......@@ -18,9 +22,9 @@ export CEILO_NC_LOC=$CEILO_CACHE_DIR
# Directory where logs will be stored
export LOGDIR="${DATA_ROOT}/log"
export LOGDIR="${ENV}/log"
# Directory where lock files will be stored
export LOCKDIR="${DATA_ROOT}/lock"
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.
Please register or to comment