[DOCKER] Ensure correct cron log file permissions (#1378)
Co-authored-by: bedlamzd <vcs@bedlamzd.dev>
This commit is contained in:
parent
2c33c3b49b
commit
a74c79d014
1 changed files with 3 additions and 3 deletions
|
|
@ -17,13 +17,13 @@ echo "Starting ytdl-sub..."
|
||||||
echo "alias ls='ls --color=auto'" > /config/.bashrc && \
|
echo "alias ls='ls --color=auto'" > /config/.bashrc && \
|
||||||
echo "cd ." >> /config/.bashrc
|
echo "cd ." >> /config/.bashrc
|
||||||
|
|
||||||
|
# always create empty cron log file on start
|
||||||
|
echo "" > "$LOGS_TO_STDOUT"
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R ${PUID:-abc}:${PGID:-abc} \
|
chown -R ${PUID:-abc}:${PGID:-abc} \
|
||||||
/config
|
/config
|
||||||
|
|
||||||
# always create empty cron log file on start
|
|
||||||
echo "" > "$LOGS_TO_STDOUT"
|
|
||||||
|
|
||||||
# update command reference:
|
# update command reference:
|
||||||
# https://github.com/yt-dlp/yt-dlp/wiki/Installation#with-pip
|
# https://github.com/yt-dlp/yt-dlp/wiki/Installation#with-pip
|
||||||
if [ "$UPDATE_YT_DLP_ON_START" == "stable" ] ; then
|
if [ "$UPDATE_YT_DLP_ON_START" == "stable" ] ; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue