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