From 68511a69158ff62a4b19b1df44132e09e8b8193e Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Thu, 31 Jul 2025 20:48:10 -0300 Subject: [PATCH] fixing crontab --- nas-gdrive-backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nas-gdrive-backup.sh b/nas-gdrive-backup.sh index 6a9bc33..305cb07 100644 --- a/nas-gdrive-backup.sh +++ b/nas-gdrive-backup.sh @@ -266,8 +266,8 @@ install_script() { install_log_separator install_log_info "Setting up cron job for backup script" - (crontab -l 2>/dev/null; echo "55 23 * * 1 $0 > /tmp/nas-gdrive-backup.log") | crontab - - install_log_ok "Cron job set up to run $0 every Monday at 23:55" + (crontab -l 2>/dev/null; echo "55 23 * * 1 /usr/local/bin/nas-gdrive-backup.sh > /tmp/nas-gdrive-backup.log") | crontab - + install_log_ok "Cron job set up to run /usr/local/bin/nas-gdrive-backup.sh every Monday at 23:55" install_log_separator echo -e "" @@ -275,7 +275,7 @@ install_script() { install_log_ok "Installation completed successfully!" install_log_separator echo -e "" - echo -e "You can now run the script manually with: \e[32m/usr/local/bin/nas-gdrive-backup.sh\e[0m" + echo -e "You can now run the script manually with: \e[32mnas-gdrive-backup.sh\e[0m" echo -e "Or it will run automatically according to the cron schedule." # Exit with success