mirror of
https://github.com/linuxserver/docker-diskover.git
synced 2026-01-21 04:11:39 +08:00
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:
parent
911b4f8f37
commit
0e20d74623
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user