Export DISKOVER_ARRAY for cleanup.sh

This commit is contained in:
Jonathan Crooke 2019-06-24 22:49:41 +02:00 committed by Ryan Kuba
parent e4ba8c0d4c
commit 3740ceeb9b

View File

@ -16,7 +16,7 @@ DISKOVER_ARRAY[DISKOVER_OPTS]="${DISKOVER_ARRAY[DISKOVER_OPTS]} -i ${DISKOVER_AR
cd /app/diskover || exit
/bin/bash /app/cleanup.sh
BASH_ENV=<(declare -p DISKOVER_ARRAY) /bin/bash /app/cleanup.sh
echo "starting workers with following options: ${DISKOVER_ARRAY[WORKER_OPTS]}"
/bin/bash /app/diskover/diskover-bot-launcher.sh ${DISKOVER_ARRAY[WORKER_OPTS]}