Fix init_vhost root flag handling
This commit is contained in:
parent
9d700a412d
commit
1aa3d5db84
@ -70,6 +70,10 @@ fi
|
||||
|
||||
as_root() {
|
||||
if [[ "$(id -u)" -eq 0 ]]; then
|
||||
# Allow callers to pass sudo-style flags without breaking root execution.
|
||||
if [[ "${1:-}" == "-E" ]]; then
|
||||
shift
|
||||
fi
|
||||
"$@"
|
||||
else
|
||||
sudo "$@"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user