Change to sudo -E to preserve ssh forwarding

This commit is contained in:
Bob Lantz
2015-06-03 16:57:33 -07:00
parent 19c03c3842
commit cfb2518ecf
+1 -1
View File
@@ -40,5 +40,5 @@ if [ -d $rootdir -a -x $rootdir/bin/bash ]; then
cmd="chroot $rootdir /bin/bash -c $cmd"
fi
cmd="exec sudo mnexec $cg -a $pid $cmd"
cmd="exec sudo -E mnexec $cg -a $pid $cmd"
eval $cmd