mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Don't saying you're requesting root unless you really are
This commit is contained in:
@@ -898,8 +898,11 @@ UNLIKELY_EOF
|
|||||||
fi
|
fi
|
||||||
echo "Installation succeeded."
|
echo "Installation succeeded."
|
||||||
fi
|
fi
|
||||||
echo "Requesting root privileges to run certbot..."
|
if [ -n "$SUDO" ]; then
|
||||||
echo " $VENV_BIN/letsencrypt" "$@"
|
# SUDO is su wrapper or sudo
|
||||||
|
echo "Requesting root privileges to run certbot..."
|
||||||
|
echo " $VENV_BIN/letsencrypt" "$@"
|
||||||
|
fi
|
||||||
if [ -z "$SUDO_ENV" ] ; then
|
if [ -z "$SUDO_ENV" ] ; then
|
||||||
# SUDO is su wrapper / noop
|
# SUDO is su wrapper / noop
|
||||||
$SUDO "$VENV_BIN/letsencrypt" "$@"
|
$SUDO "$VENV_BIN/letsencrypt" "$@"
|
||||||
|
|||||||
@@ -255,8 +255,11 @@ UNLIKELY_EOF
|
|||||||
fi
|
fi
|
||||||
echo "Installation succeeded."
|
echo "Installation succeeded."
|
||||||
fi
|
fi
|
||||||
echo "Requesting root privileges to run certbot..."
|
if [ -n "$SUDO" ]; then
|
||||||
echo " $VENV_BIN/letsencrypt" "$@"
|
# SUDO is su wrapper or sudo
|
||||||
|
echo "Requesting root privileges to run certbot..."
|
||||||
|
echo " $VENV_BIN/letsencrypt" "$@"
|
||||||
|
fi
|
||||||
if [ -z "$SUDO_ENV" ] ; then
|
if [ -z "$SUDO_ENV" ] ; then
|
||||||
# SUDO is su wrapper / noop
|
# SUDO is su wrapper / noop
|
||||||
$SUDO "$VENV_BIN/letsencrypt" "$@"
|
$SUDO "$VENV_BIN/letsencrypt" "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user