Skip to content

Commit

Permalink
Use exec in order to get rid of bash processes (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 authored Sep 26, 2024
1 parent 50adfa1 commit f138106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/bin/run-upmpdcli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,8 @@ echo "CMD_LINE=[${CMD_LINE}]"

if [[ $current_user_id -eq 0 ]]; then
echo "USER MODE [$USER_NAME]"
su - $USER_NAME -c "$CMD_LINE"
exec su - $USER_NAME -c "$CMD_LINE"
else
echo "Running as current uid [$current_user_id] ..."
eval "$CMD_LINE"
eval "exec $CMD_LINE"
fi
1 change: 1 addition & 0 deletions doc/change-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Change Date|Major Changes
---|---
2024-09-26|Use exec in order to get rid of bash processes
2024-08-24|Fix arm-only image build issue (see issue [#436](https://github.com/GioF71/upmpdcli-docker/issues/436))
2024-08-21|Bump to upmpdcli version 1.8.6
2024-07-19|Add `SKIP_CHOWN_CACHE` to skip chown on possibly crowded /cache
Expand Down

0 comments on commit f138106

Please sign in to comment.