Preserve environment when executing sudo

This commit is contained in:
Josh Grant
2020-10-01 12:36:55 +01:00
committed by GitHub
parent 70d9ba6d09
commit 2595481b26
+1 -1
View File
@@ -16,7 +16,7 @@ fi
if [ $SHOULD_SUDO == "yes" ] && [ $USER != "postal" ]; then
run() {
HOME=/opt/postal
eval "sudo -u postal $@"
eval "sudo -E -u postal $@"
}
else
run() {