diff --git a/scripts/archive_tower.sh b/scripts/archive_tower.sh index 178e30988237b5f324a07ca16e505301c3d300be..f13212558d51fe096ccddeb68ab39e0ab23779c9 100755 --- a/scripts/archive_tower.sh +++ b/scripts/archive_tower.sh @@ -8,11 +8,6 @@ SCRIPT_NAME=${SCRIPT_NAME/.sh/} # Get environment variables and common functions source $SCRIPT_HOME/metobs_config.sh -# Assume we are in /data1/software/<site>-<inst>/repos/git/<Site><Inst>/scripts -# and need to get to /data1/software/<site-<inst> -ENV=`readlink -f ../../../../` -LOGDIR=$ENV/logs - DATE=$1 if [ -z "$DATE" ]; then DATE=`date +%Y%m%d` diff --git a/scripts/metobs_config.sh b/scripts/metobs_config.sh index ee1aa03a48a77a04d6f4bf9560537e2cfbc1299c..502a660590154aa1ce48ac16e246fe37362d3cb7 100644 --- a/scripts/metobs_config.sh +++ b/scripts/metobs_config.sh @@ -7,6 +7,10 @@ export TOWER_INCOMING_DIR=/mnt/inst-data/incoming/aoss/tower export TOWER_PRAW_DIR=/mnt/inst-data/raw/aoss/tower # Where generated products go export TOWER_CACHE_DIR=/mnt/inst-data/cache/aoss/tower +# Python environment to use and where scripts are location +export ENV=/data1/software/aoss-tower3 +# Directory where logs will be stored +export LOGDIR=$ENV/logs log_info() { echo "INFO: $*" &>> $logfile