From 4bcd594234f18f17a3b6fe345cd468b9b49cc01c Mon Sep 17 00:00:00 2001 From: Erik Rose Date: Thu, 3 Dec 2015 19:18:48 -0500 Subject: [PATCH] Put off rm-ing the venv for as long as possible, since it triggers a re-bootstrap. If DeterminePythonVersion has an error, we shouldn't re-bootstrap. --- letsencrypt_auto/letsencrypt-auto.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt_auto/letsencrypt-auto.template b/letsencrypt_auto/letsencrypt-auto.template index 7025cbd9d..2f96c8c03 100755 --- a/letsencrypt_auto/letsencrypt-auto.template +++ b/letsencrypt_auto/letsencrypt-auto.template @@ -174,8 +174,8 @@ elif [ "$1" = "--no-self-upgrade" ]; then echo "Reusing old virtual environment." else echo "Creating virtual environment..." - rm -rf "$VENV_PATH" DeterminePythonVersion + rm -rf "$VENV_PATH" if [ "$VERBOSE" = 1 ]; then virtualenv --no-site-packages --python $LE_PYTHON $VENV_PATH else