aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake McGinty <me@jake.su>2018-05-06 18:58:48 -0700
committerJake McGinty <me@jake.su>2018-05-06 18:58:48 -0700
commitdf4f2b8c717d76f1653a5dca23e5bed365eca462 (patch)
tree1731ed6925e22309d856de214d2ab0fdd97f5620
parentglobal: small aesthetic cleanup (diff)
downloadwireguard-rs-df4f2b8c717d76f1653a5dca23e5bed365eca462.tar.xz
wireguard-rs-df4f2b8c717d76f1653a5dca23e5bed365eca462.zip
tools: pass on exported env vars in wg-quick
-rwxr-xr-xtools/wg-quick.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/wg-quick.bash b/tools/wg-quick.bash
index 3c107f8..9942371 100755
--- a/tools/wg-quick.bash
+++ b/tools/wg-quick.bash
@@ -82,7 +82,7 @@ die() {
}
auto_su() {
- [[ $UID == 0 ]] || exec sudo -p "$PROGRAM must be run as root. Please enter the password for %u to continue: " "$SELF" "${ARGS[@]}"
+ [[ $UID == 0 ]] || exec sudo -E -p "$PROGRAM must be run as root. Please enter the password for %u to continue: " "$SELF" "${ARGS[@]}"
}
add_if() {