mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Add list of environment variables to preserve.
This commit is contained in:
parent
6335841e19
commit
87846631ec
2 changed files with 8 additions and 0 deletions
|
|
@ -129,6 +129,10 @@ fi
|
|||
# user by overriding the environment variable LE_AUTO_SUDO to 'sudo',
|
||||
# 'sudo_su', or '' as used below.
|
||||
|
||||
# These variables must be preserved if this script tries to run itself as root.
|
||||
PRESERVE_VARS="LE_AUTO_DIR_TEMPLATE LE_AUTO_JSON_URL LE_AUTO_PUBLIC_KEY "
|
||||
PRESERVE_VARS="$PRESERVE_VARS LE_PYTHON OLD_VENV_PATH VENV_PATH"
|
||||
|
||||
# Because the parameters in `su -c` has to be a string,
|
||||
# we need to properly escape it.
|
||||
su_sudo() {
|
||||
|
|
|
|||
|
|
@ -129,6 +129,10 @@ fi
|
|||
# user by overriding the environment variable LE_AUTO_SUDO to 'sudo',
|
||||
# 'sudo_su', or '' as used below.
|
||||
|
||||
# These variables must be preserved if this script tries to run itself as root.
|
||||
PRESERVE_VARS="LE_AUTO_DIR_TEMPLATE LE_AUTO_JSON_URL LE_AUTO_PUBLIC_KEY "
|
||||
PRESERVE_VARS="$PRESERVE_VARS LE_PYTHON OLD_VENV_PATH VENV_PATH"
|
||||
|
||||
# Because the parameters in `su -c` has to be a string,
|
||||
# we need to properly escape it.
|
||||
su_sudo() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue