darwin-rebuild: add -H to sudo for $systemConfig/activate
This commit is contained in:
parent
c286b23c7f
commit
ab817e5d0e
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ if [ "$action" = switch ] || [ "$action" = activate ] || [ "$action" = rollback
|
|||
"$systemConfig/activate-user"
|
||||
|
||||
if [ "$USER" != root ]; then
|
||||
sudo "$systemConfig/activate"
|
||||
sudo -H "$systemConfig/activate"
|
||||
else
|
||||
"$systemConfig/activate"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue