Skip to content
Snippets Groups Projects
Commit 98d399b1 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Make ~git/.ssh/authorized_keys valid for SELinux

parent 90c7c03e
No related branches found
No related tags found
2 merge requests!44Backport CentOS fixes to 6-6-pre,!43Centos Gitlab Shell
Loading
Loading
@@ -38,6 +38,12 @@ directory ssh_dir do
recursive true
end
 
# If SELinux is enabled, make sure that OpenSSH thinks the .ssh directory of the
# git_user is valid.
execute "chcon -t user_home_t #{ssh_dir}" do
only_if "id -Z"
end
directory log_directory do
owner git_user
recursive true
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment