mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 18:56:05 +00:00
Preserve environment when executing sudo
This commit is contained in:
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user