[DOCKER] Move hidden files from GUI image's main dir

This commit is contained in:
Jesse Bannon 2025-03-15 16:39:37 -07:00
parent 51c134a036
commit 8db90cd4ce
3 changed files with 6 additions and 6 deletions

View file

@ -84,8 +84,8 @@ HOME="/config" \
DOCKER_MODS=linuxserver/mods:universal-stdout-logs|linuxserver/mods:universal-cron \ DOCKER_MODS=linuxserver/mods:universal-stdout-logs|linuxserver/mods:universal-cron \
DEFAULT_WORKSPACE=/config/ytdl-sub-configs \ DEFAULT_WORKSPACE=/config/ytdl-sub-configs \
CRON_SCRIPT="/config/ytdl-sub-configs/cron" \ CRON_SCRIPT="/config/ytdl-sub-configs/cron" \
CRON_WRAPPER_SCRIPT="/config/ytdl-sub-configs/.cron_wrapper" \ CRON_WRAPPER_SCRIPT="/config/.cron_wrapper" \
LOGS_TO_STDOUT=/config/ytdl-sub-configs/.cron.log \ LOGS_TO_STDOUT=/config/.cron.log \
LSIO_FIRST_PARTY=false LSIO_FIRST_PARTY=false
VOLUME /config VOLUME /config

View file

@ -39,7 +39,7 @@ if [ "$CRON_SCHEDULE" != "" ] ; then
CRON_SCHEDULE_CLEAN="${CRON_SCHEDULE_CLEAN//\'/}" CRON_SCHEDULE_CLEAN="${CRON_SCHEDULE_CLEAN//\'/}"
echo "# min hour day month weekday command" > /config/crontabs/abc echo "# min hour day month weekday command" > /config/crontabs/abc
echo "$CRON_SCHEDULE_CLEAN $DEFAULT_WORKSPACE/.cron_wrapper" >> /config/crontabs/abc echo "$CRON_SCHEDULE_CLEAN $CRON_WRAPPER_SCRIPT" >> /config/crontabs/abc
chmod +x "$CRON_SCRIPT" chmod +x "$CRON_SCRIPT"
chown abc:abc "$CRON_SCRIPT" chown abc:abc "$CRON_SCRIPT"

View file

@ -22,12 +22,12 @@ ENV variables to your docker setup.
services: services:
ytdl-sub: ytdl-sub:
environment: environment:
- CRON_SCHEDULE="0 */6 * * *" - CRON_SCHEDULE="0 */6 * * *"
- CRON_RUN_ON_START=false - CRON_RUN_ON_START=false
- ``CRON_SCHEDULE`` follows the standard `cron scheduling syntax`_. The above value will run the script once every 6 hours. - ``CRON_SCHEDULE`` follows the standard `cron scheduling syntax`_. The above value will run the script once every 6 hours.
- ``CRON_RUN_ON_START`` toggles whether to run your cron script on container start. - ``CRON_RUN_ON_START`` toggles whether to run your cron script on container start in addition to the cron schedule.
The cron script will reside in the main directory with the file name ``cron``. The cron script will reside in the main directory with the file name ``cron``.
Cron logs should show when viewing the Docker logs. Cron logs should show when viewing the Docker logs.