Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dc8bd607
Commit
dc8bd607
authored
Apr 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'satellites_permission' into 'master'
Update satellites directory permissions
parents
2ab53dfb
03b8dcce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
CHANGELOG
CHANGELOG
+1
-0
doc/install/installation.md
doc/install/installation.md
+1
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+24
-0
No files found.
CHANGELOG
View file @
dc8bd607
...
...
@@ -6,6 +6,7 @@ v 6.8.0
- Drop all tables before restoring a Postgres backup
- Make the repository downloads path configurable
- Create branches via API (sponsored by O'Reilly Media)
- Changed permission of gitlab-satellites directory not to be world accessible
v 6.7.2
- Fix upgrader script
...
...
doc/install/installation.md
View file @
dc8bd607
...
...
@@ -202,6 +202,7 @@ You can change `6-6-stable` to `master` if you want the *bleeding edge* version,
# Create directory for satellites
sudo -u git -H mkdir /home/git/gitlab-satellites
sudo chmod o-rwx /home/git/gitlab-satellites
# Create directories for sockets/pids and make sure GitLab can write to them
sudo -u git -H mkdir tmp/pids/
...
...
lib/tasks/gitlab/check.rake
View file @
dc8bd607
...
...
@@ -342,6 +342,7 @@ namespace :gitlab do
check_repo_base_is_not_symlink
check_repo_base_user_and_group
check_repo_base_permissions
check_satellites_permissions
check_update_hook_is_up_to_date
check_repos_update_hooks_is_link
check_gitlab_shell_self_test
...
...
@@ -443,6 +444,29 @@ namespace :gitlab do
end
end
def
check_satellites_permissions
print
"Satellites access is drwxr-x---? ... "
satellites_path
=
Gitlab
.
config
.
satellites
.
path
unless
File
.
exists?
(
satellites_path
)
puts
"can't check because of previous errors"
.
magenta
return
end
if
File
.
stat
(
satellites_path
).
mode
.
to_s
(
8
).
ends_with?
(
"0750"
)
puts
"yes"
.
green
else
puts
"no"
.
red
try_fixing_it
(
"sudo chmod u+rwx,g+rx,o-rwx
#{
satellites_path
}
"
,
)
for_more_information
(
see_installation_guide_section
"GitLab"
)
fix_and_rerun
end
end
def
check_repo_base_user_and_group
gitlab_shell_ssh_user
=
Gitlab
.
config
.
gitlab_shell
.
ssh_user
gitlab_shell_owner_group
=
Gitlab
.
config
.
gitlab_shell
.
owner_group
...
...
Write
Preview
Markdown
is supported
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