Skip to content

Commit

Permalink
Fix output tee command ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Feb 19, 2024
1 parent 86684d3 commit 34695d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ "${datafed_core_exec}" = "datafed-core" ]
then
# Send output to log file
# For this to work all commands must be passed in as a single string
su datafed -c '"$@"' -- argv0 "$@" 2>&1 | tee "$log_path/datafed-core.log"
su datafed -c '"$@"' -- argv0 "$@" 2>&1 | su datafed -c "tee $log_path/datafed-core.log"
else
echo "Not sending output to datafed-core.log"
# If not do not by default send to log file
Expand Down
2 changes: 1 addition & 1 deletion web/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ datafed_ws_exec=$(basename "$1")
if [ "${datafed_ws_exec}" = "datafed-ws.js" ]
then
# Send output to log file
su datafed -c '"$@"' -- argv0 "$@" 2>&1 | tee "$log_path/datafed-ws.log"
su datafed -c '"$@"' -- argv0 "$@" 2>&1 | su datafed -c "tee $log_path/datafed-ws.log"
else
echo "Not sending output to datafed-ws.log"
# If not do not by default send to log file
Expand Down

0 comments on commit 34695d5

Please sign in to comment.