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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-shell
Commits
58231f31
Commit
58231f31
authored
Feb 08, 2013
by
Andrey Kumanyaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace hardcoded commands with data from config.yml
parent
491d3cee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
bin/install
bin/install
+8
-5
No files found.
bin/install
View file @
58231f31
...
@@ -6,12 +6,15 @@ require_relative '../lib/gitlab_init'
...
@@ -6,12 +6,15 @@ require_relative '../lib/gitlab_init'
# GitLab shell, invoked from ~/.ssh/authorized_keys
# GitLab shell, invoked from ~/.ssh/authorized_keys
#
#
config
=
GitlabConfig
.
new
key_dir
=
config
.
auth_file
.
delete
"authorized_keys"
commands
=
[
commands
=
[
"mkdir -p
/home/git/repositories
"
,
"mkdir -p
#{
config
.
repos_path
}
"
,
"mkdir -p
/home/git/.ssh
"
,
"mkdir -p
#{
key_dir
}
"
,
"touch
/home/git/.ssh/authorized_keys
"
,
"touch
#{
config
.
auth_file
}
"
,
"chmod -R ug+rwX,o-rwx
/home/git/repositories/
"
,
"chmod -R ug+rwX,o-rwx
#{
config
.
repos_path
}
"
,
"find
/home/git/repositories
-type d -print0 | xargs -0 chmod g+s"
"find
#{
config
.
repos_path
}
-type d -print0 | xargs -0 chmod g+s"
]
]
commands
.
each
do
|
cmd
|
commands
.
each
do
|
cmd
|
...
...
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