Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Tatuya Kamada
gitlab-ce
Commits
c4cb563e
Commit
c4cb563e
authored
Jun 02, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8730 from drunkard/master
Specify shell while run me as git user
parents
1c328fa4
ef351f4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+2
-1
lib/support/init.d/gitlab.default.example
lib/support/init.d/gitlab.default.example
+5
-0
No files found.
lib/support/init.d/gitlab
View file @
c4cb563e
...
@@ -35,13 +35,14 @@ pid_path="$app_root/tmp/pids"
...
@@ -35,13 +35,14 @@ pid_path="$app_root/tmp/pids"
socket_path
=
"
$app_root
/tmp/sockets"
socket_path
=
"
$app_root
/tmp/sockets"
web_server_pid_path
=
"
$pid_path
/unicorn.pid"
web_server_pid_path
=
"
$pid_path
/unicorn.pid"
sidekiq_pid_path
=
"
$pid_path
/sidekiq.pid"
sidekiq_pid_path
=
"
$pid_path
/sidekiq.pid"
shell_path
=
"/bin/bash"
# Read configuration variable file if it is present
# Read configuration variable file if it is present
test
-f
/etc/default/gitlab
&&
.
/etc/default/gitlab
test
-f
/etc/default/gitlab
&&
.
/etc/default/gitlab
# Switch to the app_user if it is not he/she who is running the script.
# Switch to the app_user if it is not he/she who is running the script.
if
[
"
$USER
"
!=
"
$app_user
"
]
;
then
if
[
"
$USER
"
!=
"
$app_user
"
]
;
then
eval
su -
"
$app_user
"
-c
$(
echo
\"
)
$0
"
$@
"
$(
echo
\"
)
;
exit
;
eval
su -
"
$app_user
"
-
s
$shell_path
-
c
$(
echo
\"
)
$0
"
$@
"
$(
echo
\"
)
;
exit
;
fi
fi
# Switch to the gitlab path, exit on failure.
# Switch to the gitlab path, exit on failure.
...
...
lib/support/init.d/gitlab.default.example
View file @
c4cb563e
...
@@ -29,3 +29,8 @@ web_server_pid_path="$pid_path/unicorn.pid"
...
@@ -29,3 +29,8 @@ web_server_pid_path="$pid_path/unicorn.pid"
# sidekiq_pid_path defines the path in which to create the pid file for sidekiq
# sidekiq_pid_path defines the path in which to create the pid file for sidekiq
# The default is "$pid_path/sidekiq.pid"
# The default is "$pid_path/sidekiq.pid"
sidekiq_pid_path="$pid_path/sidekiq.pid"
sidekiq_pid_path="$pid_path/sidekiq.pid"
# shell_path defines the path of shell for "$app_user" in case you are using
# shell other than "bash"
# The default is "/bin/bash"
shell_path="/bin/bash"
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