From f138106a260955e44bee858b85a0f58d76a2dc6e Mon Sep 17 00:00:00 2001 From: Giovanni Fulco Date: Thu, 26 Sep 2024 20:10:09 +0200 Subject: [PATCH] Use exec in order to get rid of bash processes (#439) --- app/bin/run-upmpdcli.sh | 4 ++-- doc/change-history.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/bin/run-upmpdcli.sh b/app/bin/run-upmpdcli.sh index 0de9cdb..0a0cf8c 100644 --- a/app/bin/run-upmpdcli.sh +++ b/app/bin/run-upmpdcli.sh @@ -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 \ No newline at end of file diff --git a/doc/change-history.md b/doc/change-history.md index 82a72a3..0dcef0f 100644 --- a/doc/change-history.md +++ b/doc/change-history.md @@ -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