Fix init_vhost root flag handling
This commit is contained in:
1 parent
9d700a412d
commit
1aa3d5db84
1 file changed
+4
@@ -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 "$@"
|
||||
|
||||
Reference in new issue
Block a user