From 179eac4dc64124e65abaed8501defd6c62e6ede6 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Fri, 21 Apr 2023 17:36:01 +0800 Subject: [PATCH] bug fix (Fri Apr 21 17:36:00 CST 2023) --- scripts/jumpserver_deploy.sh | 2 +- scripts/testbed_deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jumpserver_deploy.sh b/scripts/jumpserver_deploy.sh index 0f4ee0c..3db278a 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 * * * * cd \"$THIS_DIR\" && git pull && \"$THIS_DIR\"/jumpserver_cron.sh" +insert_if_not_exist "/etc/crontab" "*/5 * * * * root cd \"$THIS_DIR\" && git pull && \"$THIS_DIR\"/jumpserver_cron.sh" "$THIS_DIR"/jumpserver_cron.sh diff --git a/scripts/testbed_deploy.sh b/scripts/testbed_deploy.sh index 1a77072..d43a7c7 100755 --- a/scripts/testbed_deploy.sh +++ b/scripts/testbed_deploy.sh @@ -15,6 +15,6 @@ insert_if_not_exist() grep -qxF -- "$line" "$filename" || echo "$line" >> "$filename" } -insert_if_not_exist "/etc/crontab" "*/5 * * * * cd \"$THIS_DIR\" && git pull && \"$THIS_DIR\"/testbed_cron.sh" +insert_if_not_exist "/etc/crontab" "*/5 * * * * root cd \"$THIS_DIR\" && git pull && \"$THIS_DIR\"/testbed_cron.sh" "$THIS_DIR"/testbed_cron.sh