diff --git a/scripts/jumpserver_deploy.sh b/scripts/jumpserver_deploy.sh index 3db278a..1b2b8ae 100755 --- a/scripts/jumpserver_deploy.sh +++ b/scripts/jumpserver_deploy.sh @@ -18,6 +18,6 @@ insert_if_not_exist() grep -qxF -- "$line" "$filename" || echo "$line" >> "$filename" } -insert_if_not_exist "/etc/crontab" "*/5 * * * * root cd \"$THIS_DIR\" && git pull && \"$THIS_DIR\"/jumpserver_cron.sh" +insert_if_not_exist "/etc/crontabs/root" "*/5 * * * * cd \"$THIS_DIR\" && git pull && \"$THIS_DIR\"/jumpserver_cron.sh" "$THIS_DIR"/jumpserver_cron.sh