Various corrections

This commit is contained in:
Adrien Ferrand 2019-12-07 00:00:21 +01:00
parent f4301b8526
commit 90b696ccad
3 changed files with 6 additions and 3 deletions

View file

@ -31,9 +31,9 @@ RUN update-ca-trust
COPY . /home/lea/certbot/letsencrypt-auto-source
# Tweak uname binary for tests on fake 32bits
COPY uname_wrapper /bin
COPY uname_wrapper.sh /bin
RUN mv /bin/uname /bin/uname_orig \
&& mv /bin/uname_wrapper /bin/uname
&& mv /bin/uname_wrapper.sh /bin/uname
USER lea
WORKDIR /home/lea

View file

@ -552,7 +552,7 @@ if [ "$1" = "--le-auto-phase2" ]; then
# In this situation, we bypass any bootstrap or certbot venv setup.
error "Your system is not supported by certbot-auto anymore."
if [ -f "$VENV_BIN/letsencrypt" ]; then
if [ -f "$VENV_BIN/letsencrypt" -a "$INSTALL_ONLY" != 1 ]; then
error "Certbot will no longer receive updates."
error "Please visit https://certbot.eff.org/ to check for other alternatives."
"$VENV_BIN/letsencrypt" "$@"
@ -688,6 +688,8 @@ UNLIKELY_EOF
fi
if [ "$INSTALL_ONLY" = 1 ]; then
# If you're modifying any of the code after this point in this `if` block, you may
# need to update the "$DEPRECATED_OS" = 1 case at the beginning of phase 2 as well.
say "Certbot is installed."
exit 0
fi

View file

@ -1,4 +1,5 @@
#!/bin/bash
set -e
uname_output=$(/bin/uname_orig "$@")