2022-01-16 01:06:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-01-16 16:01:47 +00:00
|
|
|
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
|
|
|
|
cd "${SCRIPT_DIR}/.."
|
|
|
|
|
2022-01-16 01:06:19 +00:00
|
|
|
source .env
|
|
|
|
|
|
|
|
DIR="${DATA_MOUNT_PATH}"
|
|
|
|
if [[ "$1" != "" ]]; then
|
|
|
|
DIR="$1"
|
|
|
|
fi
|
|
|
|
|
2022-05-31 07:40:19 +00:00
|
|
|
if [[ "${SRG_TASKLIMIT}" != "" ]]; then
|
|
|
|
find "${DIR}" -type f | docker-compose run --rm -T srg -tasklimit="${SRG_TASKLIMIT}"
|
|
|
|
else
|
|
|
|
find "${DIR}" -type f | docker-compose run --rm -T srg
|
|
|
|
fi
|
2022-01-16 01:06:19 +00:00
|
|
|
|