fixing crontab
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 35s
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 35s
This commit is contained in:
@@ -266,8 +266,8 @@ install_script() {
|
|||||||
install_log_separator
|
install_log_separator
|
||||||
|
|
||||||
install_log_info "Setting up cron job for backup script"
|
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 -
|
(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 $0 every Monday at 23:55"
|
install_log_ok "Cron job set up to run /usr/local/bin/nas-gdrive-backup.sh every Monday at 23:55"
|
||||||
install_log_separator
|
install_log_separator
|
||||||
|
|
||||||
echo -e ""
|
echo -e ""
|
||||||
@@ -275,7 +275,7 @@ install_script() {
|
|||||||
install_log_ok "Installation completed successfully!"
|
install_log_ok "Installation completed successfully!"
|
||||||
install_log_separator
|
install_log_separator
|
||||||
echo -e ""
|
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."
|
echo -e "Or it will run automatically according to the cron schedule."
|
||||||
|
|
||||||
# Exit with success
|
# Exit with success
|
||||||
|
Reference in New Issue
Block a user