mirror of
https://github.com/linuxserver/docker-diskover.git
synced 2026-02-20 04:57:50 +08:00
Added sleep to account for elasticsearch spinning up, added support for specifying index name, but default uses a timestamped name
This commit is contained in:
parent
b7cb1c0517
commit
ae96efdd98
@ -1,6 +1,12 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
INDEX_NAME=${INDEX_NAME:-diskover-$TODAY}
|
||||
|
||||
cd /app/diskover || exit
|
||||
|
||||
# sleep to allow time for elasticsearch to start via docker-compose
|
||||
sleep 10
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /usr/bin/python3 ./diskover.py -d /data -a -n
|
||||
s6-setuidgid abc /usr/bin/python3 ./diskover.py -d /data -a -i $INDEX_NAME
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user