From ab2b0cbe6ebeb28b43bbc0873ad212f1f634e384 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Fri, 20 Dec 2019 21:21:11 +0100 Subject: [PATCH] Modify test --- letsencrypt-auto-source/tests/centos6_tests.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/letsencrypt-auto-source/tests/centos6_tests.sh b/letsencrypt-auto-source/tests/centos6_tests.sh index aa8b70a25..d08481bf8 100644 --- a/letsencrypt-auto-source/tests/centos6_tests.sh +++ b/letsencrypt-auto-source/tests/centos6_tests.sh @@ -104,17 +104,17 @@ if ! "$LE_AUTO" --install-only 2>&1 | grep -q "Certbot cannot be installed."; th exit 1 fi -# Prepare certbot installation in the old venv path -# (copy installation in old path + forget about previous installation) +# Prepare a certbot installation in the old venv path mkdir -p ~/.local/share -cp -ra "$VENV_PATH" ~/.local/share/letsencrypt -unset VENV_PATH +mv /opt/eff.org/certbot/venv ~/.local/share +mv ~/.local/share/venv ~/.local/share/letsencrypt if ! "$LE_AUTO" 2>&1 | grep -q "Certbot will no longer receive updates."; then echo "On CentOS 32 bits, certbot-auto upgraded certbot on the old venv path." exit 1 fi -rm -rf ~/.local/share/letsencrypt +mv ~/.local/share/letsencrypt /opt/eff.org/certbot +mv /opt/eff.org/certbot/letsencrypt /opt/eff.org/certbot/venv echo "PASSED: On CentOS6 32 bits, certbot-auto refuses to install/upgrade certbot." )