Commit ef822dd5 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Selection du snapshot

parent 6f1d1f8c
...@@ -139,7 +139,7 @@ fi ...@@ -139,7 +139,7 @@ fi
# Get the snapshot name for this month # Get the snapshot name for this month
MONTH=$(date +%Y-%m) MONTH=$(date +%Y-%m)
SNAPSHOT_DIR=$RESIFDD_DATADIR/validated_seismic_seismic_metadata/.snapshot/monthly.${MONTH}-01_0000 SNAPSHOT_DIR=$(ls -d $RESIFDD_DATADIR/validated_seismic_seismic_metadata/.snapshot/monthly.${MONTH}*|tail -1)
if [[ ! -d $SNAPSHOT_DIR ]]; then if [[ ! -d $SNAPSHOT_DIR ]]; then
echo "Error 000 Snapshot directory $SNAPSHOT_DIR does not exist" echo "Error 000 Snapshot directory $SNAPSHOT_DIR does not exist"
exit 1 exit 1
...@@ -167,7 +167,7 @@ ils -l $KEY ...@@ -167,7 +167,7 @@ ils -l $KEY
# #
#################### ####################
SNAPSHOT_DIR="${RESIFDD_DATADIR}/validated_seismic_data/.snapshot/monthly.${MONTH}-01_0000" SNAPSHOT_DIR=$(ls -d ${RESIFDD_DATADIR}/validated_seismic_data/.snapshot/monthly.${MONTH}*|tail -1)
if [[ ! -d $SNAPSHOT_DIR ]]; then if [[ ! -d $SNAPSHOT_DIR ]]; then
echo "Error 006 Snapshot directory $SNAPSHOT_DIR does not exist" echo "Error 006 Snapshot directory $SNAPSHOT_DIR does not exist"
exit 1 exit 1
......
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