Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/web_unicorn')
-rwxr-xr-xbin/web_unicorn3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/web_unicorn b/bin/web_unicorn
index ecd0bbd10b0..41e2ac44351 100755
--- a/bin/web_unicorn
+++ b/bin/web_unicorn
@@ -9,7 +9,8 @@ unicorn_cmd="bundle exec unicorn_rails -c $unicorn_config -E $RAILS_ENV"
get_unicorn_pid()
{
- local pid=$(cat $unicorn_pidfile)
+ local pid
+ pid=$(cat $unicorn_pidfile)
if [ -z "$pid" ] ; then
echo "Could not find a PID in $unicorn_pidfile"
exit 1