Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uffd
uffd
Commits
8a12a13a
Commit
8a12a13a
authored
3 years ago
by
Julian
Committed by
nd
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ensure uffd-admin works with arguments containing whitespace
parent
6366a446
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!54
improve packaging
Pipeline
#7212
passed
3 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/contrib/uffd-admin
+3
-3
3 additions, 3 deletions
debian/contrib/uffd-admin
with
3 additions
and
3 deletions
debian/contrib/uffd-admin
+
3
−
3
View file @
8a12a13a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment