rename CHOWN_* env vars to ZEITDL_*

This commit is contained in:
Leon Haag-Fank 2024-04-05 13:05:49 +02:00
parent a7701168a1
commit 9a42317c4e

View file

@ -1,7 +1,7 @@
#!/bin/sh
[[ -n "$CHOWN_UID" || -n "$CHOWN_GID" ]] && chown_arg='-q'
[[ -n "$ZEITDL_UID" || -n "$ZEITDL_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"
[[ -n "$ZEITDL_UID" ]] && chown $ZEITDL_UID "$out"
[[ -n "$ZEITDL_GID" ]] && chgrp $ZEITDL_GID "$out"
fi