diff options
author | Jonne Haß <me@jhass.eu> | 2014-04-13 15:14:36 +0400 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2014-04-13 15:14:36 +0400 |
commit | a9b29a5881ac203fd2244c9db8c9f605a0e4ee1e (patch) | |
tree | 7e629f1e3659978b049254101178d457260d66cf /script | |
parent | 7d9248b7ac8bd200c014eda08c8f182ade951220 (diff) | |
parent | 3fd938f7e74f2f242d77574afd04c6263a067f91 (diff) |
Merge pull request #4885 from jaywink/curl-warning
Add warning to script/server if curl does not support AsyncDNS
Diffstat (limited to 'script')
-rwxr-xr-x | script/server | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/script/server b/script/server index 9b079d0a9..039ed1029 100755 --- a/script/server +++ b/script/server @@ -125,6 +125,18 @@ application, run: bundle exec rake assets:precompile" 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 echo -n "Starting Diaspora in $RAILS_ENV mode on port $port " if [ "$embed_sidekiq_worker" = "true" ] |