Skip to content

Commit 7dbcc1e

Browse files
committed
Use 2>&1 because Bash 3 does not support &>>
1 parent 1a923fe commit 7dbcc1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/background_jobs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gitlab_user=$(ls -l config.ru | awk '{print $3}')
88

99
function stop
1010
{
11-
bundle exec sidekiqctl stop $sidekiq_pidfile &>> $sidekiq_logfile
11+
bundle exec sidekiqctl stop $sidekiq_pidfile >> $sidekiq_logfile 2>&1
1212
}
1313

1414
function killall
@@ -32,7 +32,7 @@ function start_no_deamonize
3232

3333
function start_sidekiq
3434
{
35-
bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e $RAILS_ENV -P $sidekiq_pidfile $@ &>> $sidekiq_logfile
35+
bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e $RAILS_ENV -P $sidekiq_pidfile $@ >> $sidekiq_logfile 2>&1
3636
}
3737

3838
case "$1" in

0 commit comments

Comments
 (0)