We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08d56f0 commit 466a94cCopy full SHA for 466a94c
1 file changed
sinusbot_installer.sh
@@ -920,6 +920,10 @@ fi
920
921
if [ "$YT" == "Yes" ]; then
922
greenMessage "Installing YT-Downloader now"!
923
+ if [ "$(cat /etc/cron.d/ytdl)" == "0 0 * * * $SINUSBOTUSER youtube-dl -U --restrict-filename >/dev/null" ]; then
924
+ rm /etc/cron.d/ytdl
925
+ yellowMessage "Deleted old YT-DL cronjob. Generating new one in a second."
926
+ fi
927
if [ -f /etc/cron.d/ytdl ] && [ "$(grep -c 'youtube' /etc/cron.d/ytdl)" -ge 1 ]; then
928
redMessage "Cronjob already set for YT-DL updater"!
929
else
0 commit comments