mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
From docker/docker - Add -E flag to sudo (fixes #8494)
Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni <jerome@docker.com> (github: jpetazzo)
This commit is contained in:
1 parent
74ac14753c
commit
fd9ed0705b
1 file changed
+1
-1
+1
-1
@@ -42,7 +42,7 @@ user="$(id -un 2>/dev/null || true)"
|
||||
sh_c='sh -c'
|
||||
if [ "$user" != 'root' ]; then
|
||||
if command_exists sudo; then
|
||||
sh_c='sudo sh -c'
|
||||
sh_c='sudo -E sh -c'
|
||||
elif command_exists su; then
|
||||
sh_c='su -c'
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user