From 9661dff4e8126537afcc50f7a5a1d7e5b8d4bd42 Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Wed, 12 Aug 2020 15:30:36 +0000 Subject: [PATCH] Updated entrypoint.sh to not forget arguments When running as root this script would get executed as the appuser, but the possible arguments would be forgotten. --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index eec6147..e3b3f78 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ # and re-run this script as appuser. if [[ $(id -u) -eq 0 ]]; then chown -R appuser:appuser /store /config - exec su -c "$0" appuser + exec su appuser -- "$0" "$@" fi # Load Default recorder.conf if not available