fixed issue with INDEX_NAME variable not being properly evaluated within the conditional of the DISKOVER_OPTS conditional. separated it into a separate string concat to get around this (i'm sure there's probably a better way though)

This commit is contained in:
alex-phillips 2018-07-31 12:45:52 -04:00
parent 911b4f8f37
commit 0e20d74623

View File

@ -5,7 +5,9 @@
TODAY=$(date +%Y-%m-%d)
INDEX_PREFIX=${INDEX_PREFIX:-diskover-}
INDEX_NAME=${INDEX_NAME:-$INDEX_PREFIX$TODAY}
DISKOVER_OPTS=${DISKOVER_OPTS:-"-d /data -a -i $INDEX_NAME"}
DISKOVER_OPTS=${DISKOVER_OPTS:-"-d /data -a"}
DISKOVER_OPTS="$DISKOVER_OPTS -i $INDEX_NAME"
cd /app/diskover || exit