OrbitalBeat/scripts/add.sh
2022-05-31 09:40:19 +02:00

19 lines
378 B
Bash
Executable file

#!/bin/bash
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
cd "${SCRIPT_DIR}/.."
source .env
DIR="${DATA_MOUNT_PATH}"
if [[ "$1" != "" ]]; then
DIR="$1"
fi
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