Revert "taskworker: put the arg in shebang line"

Not supported on ubuntu 18

This reverts commit e6edc4e999.
This commit is contained in:
Johannes Zellner
2021-05-14 10:51:37 +02:00
parent 170efbcb5e
commit a43e804ee2
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}" "${task_id}" "${logfile}"
"${task_worker}" --unhandled-rejections=strict "${task_id}" "${logfile}"
exit_code=$?
if [[ "${ubuntu_version}" == "16.04" ]]; then