Pārlūkot izejas kodu

Add -E flag to sudo (fixes #8494)

Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni <jerome@docker.com> (github: jpetazzo)
Jérôme Petazzoni 10 gadi atpakaļ
vecāks
revīzija
e01e913d80
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      hack/install.sh

+ 1 - 1
hack/install.sh

@@ -42,7 +42,7 @@ user="$(id -un 2>/dev/null || true)"
 sh_c='sh -c'
 sh_c='sh -c'
 if [ "$user" != 'root' ]; then
 if [ "$user" != 'root' ]; then
 	if command_exists sudo; then
 	if command_exists sudo; then
-		sh_c='sudo sh -c'
+		sh_c='sudo -E sh -c'
 	elif command_exists su; then
 	elif command_exists su; then
 		sh_c='su -c'
 		sh_c='su -c'
 	else
 	else