mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix invalid bash syntax.
This commit is contained in:
@@ -31,7 +31,7 @@ function on_reload()
|
|||||||
done
|
done
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
while [ "$count" -lt 30 -a -z `ps -f --ppid $NEW_UNICORN_PID | grep worker | head -1 | awk '{ print $2 }'` ]; do
|
while [ "$count" -lt 30 -a -z $(ps -f --ppid $NEW_UNICORN_PID | grep worker | head -1 | awk '{ print $2 }') ]; do
|
||||||
log "Waiting for new unicorn workers under $NEW_UNICORN_PID to start up..."
|
log "Waiting for new unicorn workers under $NEW_UNICORN_PID to start up..."
|
||||||
count=$((count+1))
|
count=$((count+1))
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in New Issue
Block a user