From a11b2b60c7768e16ac2dcc77a586ee506367187a Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Fri, 21 Apr 2023 17:56:16 +0800 Subject: [PATCH] jumpserver use /etc/crontabs/root instead of /etc/crontab --- scripts/jumpserver_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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