Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
234f55f3
Unverified
Commit
234f55f3
authored
5 years ago
by
Andrew Morgan
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Docker: Change permissions for data dir before attempting to write to it (#6389)
parent
4f5ca455
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/6389.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/6389.bugfix
docker/start.py
+3
-3
3 additions, 3 deletions
docker/start.py
with
4 additions
and
3 deletions
changelog.d/6389.bugfix
0 → 100644
+
1
−
0
View file @
234f55f3
Fix permission denied error when trying to generate a config file with the docker image.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/start.py
+
3
−
3
View file @
234f55f3
...
@@ -169,11 +169,11 @@ def run_generate_config(environ, ownership):
...
@@ -169,11 +169,11 @@ def run_generate_config(environ, ownership):
# log("running %s" % (args, ))
# log("running %s" % (args, ))
if
ownership
is
not
None
:
if
ownership
is
not
None
:
args
=
[
"
su-exec
"
,
ownership
]
+
args
os
.
execv
(
"
/sbin/su-exec
"
,
args
)
# make sure that synapse has perms to write to the data dir.
# make sure that synapse has perms to write to the data dir.
subprocess
.
check_output
([
"
chown
"
,
ownership
,
data_dir
])
subprocess
.
check_output
([
"
chown
"
,
ownership
,
data_dir
])
args
=
[
"
su-exec
"
,
ownership
]
+
args
os
.
execv
(
"
/sbin/su-exec
"
,
args
)
else
:
else
:
os
.
execv
(
"
/usr/local/bin/python
"
,
args
)
os
.
execv
(
"
/usr/local/bin/python
"
,
args
)
...
...
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