Commit e37dc929 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #40 from jacargentina/patch-1

Fix permissions for SSH with StricModes onn
parents 335f9e81 119911c0
...@@ -12,7 +12,9 @@ key_dir = File.dirname("#{config.auth_file}") ...@@ -12,7 +12,9 @@ key_dir = File.dirname("#{config.auth_file}")
commands = [ commands = [
"mkdir -p #{config.repos_path}", "mkdir -p #{config.repos_path}",
"mkdir -p #{key_dir}", "mkdir -p #{key_dir}",
"chmod 700 #{key_dir}",
"touch #{config.auth_file}", "touch #{config.auth_file}",
"chmod 600 #{config.auth_file}",
"chmod -R ug+rwX,o-rwx #{config.repos_path}", "chmod -R ug+rwX,o-rwx #{config.repos_path}",
"find #{config.repos_path} -type d -print0 | xargs -0 chmod g+s" "find #{config.repos_path} -type d -print0 | xargs -0 chmod g+s"
] ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment