From db1f0a6688dbffd33e3e1fa65dab0f6ac29b2569 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Wed, 21 Oct 2015 13:42:48 -0700 Subject: [PATCH] Fix pip / nginx heisenbug Closes: #1072 --- letsencrypt-auto | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/letsencrypt-auto b/letsencrypt-auto index 0b3d9b72d..b2b7a3f1c 100755 --- a/letsencrypt-auto +++ b/letsencrypt-auto @@ -69,8 +69,12 @@ if [ "$VERBOSE" = 1 ] ; then echo $VENV_BIN/pip install -U setuptools $VENV_BIN/pip install -U pip - # nginx is buggy / disabled for now... - $VENV_BIN/pip install -U letsencrypt letsencrypt-apache #letsencrypt-nginx + $VENV_BIN/pip install -U letsencrypt letsencrypt-apache + # nginx is buggy / disabled for now, but upgrade it if the user has + # installed it manually + if $VENV_BIN/pip freeze | grep -q letsencrypt-nginx ; then + $VENV_BIN/pip install -U letsencrypt letsencrypt-nginx + fi else $VENV_BIN/pip install -U setuptools > /dev/null echo -n . @@ -80,6 +84,10 @@ else $VENV_BIN/pip install -U letsencrypt > /dev/null echo -n . $VENV_BIN/pip install -U letsencrypt-apache > /dev/null + if $VENV_BIN/pip freeze | grep -q letsencrypt-nginx ; then + echo -n . + $VENV_BIN/pip install -U letsencrypt-nginx > /dev/null + fi echo fi