diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-19 12:44:37 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-19 12:44:37 -0700 |
commit | e37dc929f82ada2ff811cbc9c404c610e11a0668 (patch) | |
tree | f5ef1ec582e196fb7dabb1445a125fd9fa52f9da | |
parent | 335f9e81e08442435140218994f96226348492c6 (diff) | |
parent | 119911c0cef5af241f25b01a0cd7bcdbff863319 (diff) | |
download | gitlab-shell-e37dc929f82ada2ff811cbc9c404c610e11a0668.tar.gz |
Merge pull request #40 from jacargentina/patch-1
Fix permissions for SSH with StricModes onn
-rwxr-xr-x | bin/install | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/install b/bin/install index 6b23df8..f8c12f8 100755 --- a/bin/install +++ b/bin/install @@ -12,7 +12,9 @@ key_dir = File.dirname("#{config.auth_file}") commands = [ "mkdir -p #{config.repos_path}", "mkdir -p #{key_dir}", + "chmod 700 #{key_dir}", "touch #{config.auth_file}", + "chmod 600 #{config.auth_file}", "chmod -R ug+rwX,o-rwx #{config.repos_path}", "find #{config.repos_path} -type d -print0 | xargs -0 chmod g+s" ] |