Commit 7dbcc1e660b655523cd577a5db4525ddc1aa7414
1 parent
1a923fe0
Use `2>&1` because Bash 3 does not support `&>>`
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
script/background_jobs
| @@ -8,7 +8,7 @@ gitlab_user=$(ls -l config.ru | awk '{print $3}') | @@ -8,7 +8,7 @@ gitlab_user=$(ls -l config.ru | awk '{print $3}') | ||
| 8 | 8 | ||
| 9 | function stop | 9 | function stop |
| 10 | { | 10 | { |
| 11 | - bundle exec sidekiqctl stop $sidekiq_pidfile &>> $sidekiq_logfile | 11 | + bundle exec sidekiqctl stop $sidekiq_pidfile >> $sidekiq_logfile 2>&1 |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | function killall | 14 | function killall |
| @@ -32,7 +32,7 @@ function start_no_deamonize | @@ -32,7 +32,7 @@ function start_no_deamonize | ||
| 32 | 32 | ||
| 33 | function start_sidekiq | 33 | function start_sidekiq |
| 34 | { | 34 | { |
| 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 |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | case "$1" in | 38 | case "$1" in |