Skip to content
Snippets Groups Projects
Commit f91df76b authored by c-tim's avatar c-tim Committed by Tim Neumann
Browse files

fix(uffd-admin): Fix bug with util-linux fallback path

Use runuser instead of su, as su does not really support multiple arguments to -c

Fixes #112
parent 9d00cbeb
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ if [ "$(whoami)" = "uffd" ]; then
flask "$@"
elif command -v sudo &> /dev/null; then
exec sudo --preserve-env=FLASK_APP,CONFIG_FILENAME -u uffd flask "$@"
elif command -v su &> /dev/null; then
exec su -s /bin/sh --preserve-environment uffd -c flask "$@"
elif command -v runuser &> /dev/null; then
exec runuser --preserve-environment -u uffd -- flask "$@"
else
echo "Could not not become 'uffd' user, exiting"
exit 255
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment