* Fix the safety check.
This commit is contained in:
parent
a14d491f09
commit
ef281b93c2
1 changed files with 2 additions and 2 deletions
|
@ -374,8 +374,8 @@ static void processConnection()
|
|||
|
||||
/* Prevent users from doing something very dangerous. */
|
||||
if (geteuid() == 0 &&
|
||||
querySetting("build-users", Strings()).size() == 0)
|
||||
throw Error("if you run `nix-worker' as root, then you MUST set `build-users'!");
|
||||
querySetting("build-users-group", "") == "")
|
||||
throw Error("if you run `nix-worker' as root, then you MUST set `build-users-group'!");
|
||||
|
||||
/* Open the store. */
|
||||
store = boost::shared_ptr<StoreAPI>(new LocalStore(true));
|
||||
|
|
Loading…
Reference in a new issue