Skip to content

Commit

Permalink
[DOCS] Fix documentation for headless cron path (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsgnr authored Oct 27, 2024
1 parent 88110a8 commit 102e2a9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/source/guides/getting_started/automating_downloads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Docker and Unraid

.. tab-item:: GUI Image

The script that will execute automatically is located at ``/config/ytdl-sub-configs/run-cron``.
The script that will execute automatically is located at ``/config/ytdl-sub-configs/run_cron``.

Access your container at http://localhost:8443/, then in the GUI terminal run these commands:

Expand Down Expand Up @@ -81,7 +81,7 @@ Docker and Unraid
docker compose restart
The script that will execute automatically is located at ``/config/run-cron``.
The script that will execute automatically is located at ``/config/run_cron``.

Access your container from the terminal by running:

Expand All @@ -93,13 +93,13 @@ Docker and Unraid

.. code-block:: shell
echo '#!/bin/bash' > /config/ytdl-sub-configs/run_cron
echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /config/ytdl-sub-configs/run_cron
echo "echo 'Cron started, running ytdl-sub...'" >> /config/ytdl-sub-configs/run_cron
echo "cd /config/ytdl-sub-configs" >> /config/ytdl-sub-configs/run_cron
echo "ytdl-sub --config=config.yaml sub subscriptions.yaml" >> /config/ytdl-sub-configs/run_cron
chmod +x /config/ytdl-sub-configs/run_cron
chown abc:abc /config/ytdl-sub-configs/run_cron
echo '#!/bin/bash' > /config/run_cron
echo "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >> /config/run_cron
echo "echo 'Cron started, running ytdl-sub...'" >> /config/run_cron
echo "cd /config" >> /config/run_cron
echo "ytdl-sub --config=config.yaml sub subscriptions.yaml" >> /config/run_cron
chmod +x /config/run_cron
chown abc:abc /config/run_cron
You can test the newly created script by running:

Expand Down Expand Up @@ -137,4 +137,4 @@ To be tested (please contact code owner or join the discord server if you can te

.. code-block:: powershell
ytdl-sub.exe --config \path\to\config\config.yaml sub \path\to\config\subscriptions.yaml
ytdl-sub.exe --config \path\to\config\config.yaml sub \path\to\config\subscriptions.yaml

0 comments on commit 102e2a9

Please sign in to comment.