Add warning to script/server if curl does not support AsyncDNS

This commit is contained in:
Jason Robinson 2014-03-30 22:54:30 +03:00
parent 07aec2a630
commit 3fd938f7e7

View file

@ -125,6 +125,18 @@ application, run:
bundle exec rake assets:precompile" bundle exec rake assets:precompile"
fi fi
# Check for old curl versions (see https://github.com/diaspora/diaspora/issues/4202)
if [ `curl -V | grep AsynchDNS | wc -l` -ne 1 ]
then
warning "
*****************************************************************
curl does not support async DNS, this can cause Sidekiq to crash!
Please update curl to version 7.32, see issue
https://github.com/diaspora/diaspora/issues/4202 for details
*****************************************************************
"
fi
# Start Diaspora # Start Diaspora
echo -n "Starting Diaspora in $RAILS_ENV mode on port $port " echo -n "Starting Diaspora in $RAILS_ENV mode on port $port "
if [ "$embed_sidekiq_worker" = "true" ] if [ "$embed_sidekiq_worker" = "true" ]