mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
daemon: Create /var/guix/profiles/per-user unconditionally.
* nix/libstore/local-store.cc (LocalStore::LocalStore): Create ‘perUserDir’ unconditionally. Change-Id: I5188320f9630a81d16f79212d0fffabd55d94abe
This commit is contained in:
parent
ae18b3d9e6
commit
a3d6f5ae70
1 changed files with 4 additions and 4 deletions
|
@ -79,12 +79,12 @@ LocalStore::LocalStore(bool reserveSpace)
|
||||||
createSymlink(profilesDir, gcRootsDir + "/profiles");
|
createSymlink(profilesDir, gcRootsDir + "/profiles");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Optionally, create directories and set permissions for a
|
|
||||||
multi-user install. */
|
|
||||||
if (getuid() == 0 && settings.buildUsersGroup != "") {
|
|
||||||
|
|
||||||
Path perUserDir = profilesDir + "/per-user";
|
Path perUserDir = profilesDir + "/per-user";
|
||||||
createDirs(perUserDir);
|
createDirs(perUserDir);
|
||||||
|
|
||||||
|
/* Optionally, set permissions for a multi-user install. */
|
||||||
|
if (getuid() == 0 && settings.buildUsersGroup != "") {
|
||||||
|
|
||||||
if (chmod(perUserDir.c_str(), 0755) == -1)
|
if (chmod(perUserDir.c_str(), 0755) == -1)
|
||||||
throw SysError(format("could not set permissions on '%1%' to 755")
|
throw SysError(format("could not set permissions on '%1%' to 755")
|
||||||
% perUserDir);
|
% perUserDir);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue