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
|
if [ $SHOULD_SUDO == "yes" ] && [ $USER != "postal" ]; then
|
||||||
run() {
|
run() {
|
||||||
HOME=/opt/postal
|
HOME=/opt/postal
|
||||||
eval "sudo -u postal $@"
|
eval "sudo -E -u postal $@"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
run() {
|
run() {
|
||||||
|
|||||||
Reference in New Issue
Block a user