Commit 82723542880ee261dfd4bc2816b8d97149a18927

Authored by 張旭
1 parent 58640f93

in /etc/init.d/gitlab, I add "-l" option in sh command

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
doc/installation.md
@@ -284,7 +284,7 @@ Create init script in /etc/init.d/gitlab: @@ -284,7 +284,7 @@ Create init script in /etc/init.d/gitlab:
284 284
285 echo -n "Starting $DESC: " 285 echo -n "Starting $DESC: "
286 if [ `whoami` = root ]; then 286 if [ `whoami` = root ]; then
287 - sudo -u gitlab sh -c "$CD_TO_APP_DIR > /dev/null 2>&1 && $START_DAEMON_PROCESS && $START_RESQUE_PROCESS" 287 + sudo -u gitlab sh -l -c "$CD_TO_APP_DIR > /dev/null 2>&1 && $START_DAEMON_PROCESS && $START_RESQUE_PROCESS"
288 else 288 else
289 $CD_TO_APP_DIR > /dev/null 2>&1 && $START_DAEMON_PROCESS && $START_RESQUE_PROCESS 289 $CD_TO_APP_DIR > /dev/null 2>&1 && $START_DAEMON_PROCESS && $START_RESQUE_PROCESS
290 fi 290 fi