mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* Create some state directories automatically as a convenience.
This commit is contained in:
parent
48b58617e9
commit
64e89980e8
2 changed files with 17 additions and 6 deletions
|
@ -467,6 +467,8 @@ void UserLock::acquire()
|
|||
if (!pw)
|
||||
throw Error(format("the user `%1%' in the group `%2%' does not exist")
|
||||
% *i % buildUsersGroup);
|
||||
|
||||
createDirs(nixStateDir + "/userpool");
|
||||
|
||||
fnUserLock = (format("%1%/userpool/%2%") % nixStateDir % pw->pw_uid).str();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue