1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #8495 from jpetazzo/8494-fix-debian-frontend-in-getdockercom-script

Add -E flag to sudo (fixes #8494)
This commit is contained in:
Tibor Vass 2014-10-09 18:05:18 -04:00
commit d095659c6e

View file

@ -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