zeit-dl/docker-entrypoint.sh

7 lines
284 B
Bash
Executable file

#!/bin/sh
[[ -n "$CHOWN_UID" || -n "$CHOWN_GID" ]] && chown_arg='-q'
if out=$(python ./zeit-dl "$ZEITDL_USER" "$ZEITDL_PASSWORD" ${ZEITDL_OPTIONS:=-o /data} $chown_arg) then
[[ -n "$CHOWN_UID" ]] && chown $CHOWN_UID "$out"
[[ -n "$CHOWN_GID" ]] && chgrp $CHOWN_GID "$out"
fi