Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
5b2ede7d
Verified
Commit
5b2ede7d
authored
Jun 21, 2022
by
Chocobozzz
Browse files
Fix docker user entrypoint
parent
d47b1807
Changes
1
Hide whitespace changes
Inline
Side-by-side
support/docker/production/entrypoint.sh
View file @
5b2ede7d
...
...
@@ -7,11 +7,11 @@ find /config ! -user peertube -exec chown peertube:peertube {} \; || true
# first arg is `-f` or `--some-option`
# or first arg is `something.conf`
if
[
"
${
1
#-
}
"
!=
"
$1
"
]
||
[
"
${
1
%.conf
}
"
!=
"
$1
"
]
;
then
set
--
n
pm
"
$@
"
set
--
n
ode
"
$@
"
fi
# allow the container to be started with `--user`
if
[
"
$1
"
=
'n
pm
'
-a
"
$(
id
-u
)
"
=
'0'
]
;
then
if
[
"
$1
"
=
'n
ode
'
-a
"
$(
id
-u
)
"
=
'0'
]
;
then
find /data
!
-user
peertube
-exec
chown
peertube:peertube
{}
\;
exec
gosu peertube
"
$0
"
"
$@
"
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment