1
0
Fork 0
immich-folder-album-creator/docker/immich_auto_album.sh

24 lines
527 B
Bash
Raw Normal View History

2024-02-24 14:15:57 +01:00
#!/usr/bin/env sh
# Always run unattended
arg_fetch_chunk_size=""
arg_chunk_size=""
arg_log_Level=""
arg_root_path=""
arg_api_url=""
arg_api_key=""
if [ ! -z "$FETCH_CHUNK_SIZE" ]; then
arg_fetch_chunk_size="-C $FETCH_CHUNK_SIZE"
fi
if [ ! -z "$CHUNK_SIZE" ]; then
arg_chunk_size="-c $CHUNK_SIZE"
fi
if [ ! -z "$LOG_LEVEL" ]; then
arg_log_Level="-l $LOG_LEVEL"
fi
BASEDIR=$(dirname "$0")
python3 $BASEDIR/immich_auto_album.py -u $arg_fetch_chunk_size $arg_chunk_size $arg_log_Level $ROOT_PATH $API_URL $API_KEY