mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
@@ -65,6 +65,7 @@ iQIDAQAB
|
|||||||
"
|
"
|
||||||
|
|
||||||
if [ $(python -V 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//') -eq 26 ]; then
|
if [ $(python -V 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//') -eq 26 ]; then
|
||||||
|
RUN_PYTHON3_TESTS=1
|
||||||
if command -v python3; then
|
if command -v python3; then
|
||||||
echo "Didn't expect Python 3 to be installed!"
|
echo "Didn't expect Python 3 to be installed!"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -85,11 +86,25 @@ if [ $(python -V 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//') -eq 26 ];
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
unset VENV_PATH
|
unset VENV_PATH
|
||||||
EXPECTED_VERSION=$(grep -m1 LE_AUTO_VERSION certbot-auto | cut -d\" -f2)
|
fi
|
||||||
if ! ./cb-auto -v --debug --version -n 2>&1 | grep "$EXPECTED_VERSION" ; then
|
|
||||||
echo "Certbot didn't upgrade as expected!"
|
if ./letsencrypt-auto -v --debug --version | grep "WARNING: couldn't find Python" ; then
|
||||||
exit 1
|
echo "Had problems checking for updates!"
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
EXPECTED_VERSION=$(grep -m1 LE_AUTO_VERSION certbot-auto | cut -d\" -f2)
|
||||||
|
if ! /opt/eff.org/certbot/venv/bin/letsencrypt --version 2>&1 | grep "$EXPECTED_VERSION" ; then
|
||||||
|
echo upgrade appeared to fail
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! diff letsencrypt-auto letsencrypt-auto-source/letsencrypt-auto ; then
|
||||||
|
echo letsencrypt-auto and letsencrypt-auto-source/letsencrypt-auto differ
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$RUN_PYTHON3_TESTS" = 1 ]; then
|
||||||
if ! command -v python3; then
|
if ! command -v python3; then
|
||||||
echo "Python3 wasn't properly installed"
|
echo "Python3 wasn't properly installed"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -98,11 +113,7 @@ if [ $(python -V 2>&1 | cut -d" " -f 2 | cut -d. -f1,2 | sed 's/\.//') -eq 26 ];
|
|||||||
echo "Python3 wasn't used in venv!"
|
echo "Python3 wasn't used in venv!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif ! ./letsencrypt-auto -v --debug --version || ! diff letsencrypt-auto letsencrypt-auto-source/letsencrypt-auto ; then
|
|
||||||
echo upgrade appeared to fail
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo upgrade appeared to be successful
|
echo upgrade appeared to be successful
|
||||||
|
|
||||||
if [ "$(tools/readlink.py ${XDG_DATA_HOME:-~/.local/share}/letsencrypt)" != "/opt/eff.org/certbot/venv" ]; then
|
if [ "$(tools/readlink.py ${XDG_DATA_HOME:-~/.local/share}/letsencrypt)" != "/opt/eff.org/certbot/venv" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user