Skip to content
Snippets Groups Projects
Verified Commit 180a8f8a authored by nd's avatar nd
Browse files

Merge branch '82-better-packages' of git.cccv.de:uffd/uffd into 82-better-packages

parents 3196f8f1 8a12a13a
No related branches found
No related tags found
No related merge requests found
......@@ -6,11 +6,11 @@ export FLASK_APP=/usr/share/uffd/uffd
export CONFIG_FILENAME=/etc/uffd/uffd.cfg
if [ "$(whoami)" = "uffd" ]; then
flask $@
flask "$@"
elif command -v sudo &> /dev/null; then
exec sudo --preserve-env=FLASK_APP,CONFIG_FILENAME -u uffd flask $@
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 $@
exec su -s /bin/sh --preserve-environment uffd -c 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