Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
0
Merge Requests
0
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-shell
Commits
73c8ea9c
Commit
73c8ea9c
authored
Mar 07, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use safer shell invocations in bin/install
parent
42571190
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
bin/install
bin/install
+9
-9
No files found.
bin/install
View file @
73c8ea9c
...
@@ -10,18 +10,18 @@ config = GitlabConfig.new
...
@@ -10,18 +10,18 @@ config = GitlabConfig.new
key_dir
=
File
.
dirname
(
"
#{
config
.
auth_file
}
"
)
key_dir
=
File
.
dirname
(
"
#{
config
.
auth_file
}
"
)
commands
=
[
commands
=
[
"mkdir -p
#{
config
.
repos_path
}
"
,
%W(mkdir -p
#{
config
.
repos_path
}
)
,
"mkdir -p
#{
key_dir
}
"
,
%W(mkdir -p
#{
key_dir
}
)
,
"chmod 700
#{
key_dir
}
"
,
%W(chmod 700
#{
key_dir
}
)
,
"touch
#{
config
.
auth_file
}
"
,
%W(touch
#{
config
.
auth_file
}
)
,
"chmod 600
#{
config
.
auth_file
}
"
,
%W(chmod 600
#{
config
.
auth_file
}
)
,
"chmod -R ug+rwX,o-rwx
#{
config
.
repos_path
}
"
,
%W(chmod -R ug+rwX,o-rwx
#{
config
.
repos_path
}
)
,
"find
#{
config
.
repos_path
}
-type d -print0 | xargs -0 chmod g+s"
%W(find
#{
config
.
repos_path
}
-type d -exec chmod g+s {} ;)
]
]
commands
.
each
do
|
cmd
|
commands
.
each
do
|
cmd
|
print
"
#{
cmd
}
: "
print
"
#{
cmd
.
join
(
' '
)
}
: "
if
system
(
cmd
)
if
system
(
*
cmd
)
puts
'OK'
puts
'OK'
else
else
puts
'Failed'
puts
'Failed'
...
...
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