Skip to content

Incorrect cron entry for ytdl updates #61

@NielsH

Description

@NielsH

Hello,

The SinusBot installer script installs ytdl and adds a cron-entry to automatically update this tool. It does that by creating /etc/cron.d/ytdl which contains:

0 0 * * * sinusbot youtube-dl -U --restrict-filename >/dev/null

However, on Debian 8 at least, this cron fails. This is because youtube-dl is located in /usr/local/bin/youtube-dl and the default PATH in the cron file is /usr/bin:/bin.

I fixed it for now by changing the cron to this:

0 0 * * * sinusbot PATH=$PATH:/usr/local/bin; youtube-dl -U --restrict-filename >/dev/null

However, I am not sure if the cron can be overwritten automatically by an update from SinusBot at some point, which is why I am reporting it here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions