taskworker: put the arg in shebang line

otherwise, it gets passed as an arg to the script and is visible in process.argv!
This commit is contained in:
Girish Ramakrishnan
2021-05-13 22:49:13 -07:00
parent b7643ae3b3
commit e6edc4e999
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ fi
# DEBUG has to be hardcoded because it is not set in the tests. --setenv is required for ubuntu 16 (-E does not work)
systemd-run --unit "${service_name}" --nice "${nice}" --uid=${id} --gid=${id} ${options} \
--setenv HOME=${HOME} --setenv USER=${SUDO_USER} --setenv DEBUG=box:* --setenv BOX_ENV=${BOX_ENV} --setenv NODE_ENV=production \
"${task_worker}" --unhandled-rejections=strict "${task_id}" "${logfile}"
"${task_worker}" "${task_id}" "${logfile}"
exit_code=$?
if [[ "${ubuntu_version}" == "16.04" ]]; then