OrbitalBeat/scripts/add.sh
DataHoarder 156d925215
Some checks failed
continuous-integration/drone/push Build is failing
Change add.sh to use credentials from docker-compose.yml
2022-01-18 11:35:11 +01:00

15 lines
241 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
find "${DIR}" -type f | docker-compose run --rm -T srg