Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eckersley <pde@eff.org>2015-11-11 23:57:32 +0300
committerPeter Eckersley <pde@eff.org>2015-11-11 23:57:32 +0300
commitb26a87a33c4487c98f7cb8e6a5279feb4c79eb16 (patch)
tree7c7af91bd09405b3ca2e4291aff2200cc8ee2e3f /letsencrypt-auto
parent5ce92402008f36ab0f5d54e1456a878a6486ee3f (diff)
Comments on SUDO
Diffstat (limited to 'letsencrypt-auto')
-rwxr-xr-xletsencrypt-auto7
1 files changed, 6 insertions, 1 deletions
diff --git a/letsencrypt-auto b/letsencrypt-auto
index 667dcecfd..160de036a 100755
--- a/letsencrypt-auto
+++ b/letsencrypt-auto
@@ -27,11 +27,16 @@ for arg in "$@" ; do
fi
done
+# letsencrypt-auto needs root access to bootstrap OS dependencies, and
+# letsencrypt itself needs root access for almost all modes of operation
+# The "normal" case is that sudo is used for the steps that need root, but
+# this script *can* be run as root (not recommended), or fall back to using
+# `su`
if test "`id -u`" -ne "0" ; then
if command -v sudo 1>/dev/null 2>&1; then
SUDO=sudo
else
- # `sudo` command does not exist, use `su` instead.
+ echo \"sudo\" is not available, will use \"su\" for installation steps...
# Because the parameters in `su -c` has to be a string,
# we need properly escape it
su_sudo() {