mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
nixos/onlyoffice: Fix initial permissions for the documentserver data
This commit is contained in:
parent
e75ed2f09f
commit
405984ac13
@ -229,6 +229,9 @@ in
|
|||||||
cp -r ${cfg.package}/etc/onlyoffice/documentserver/* /run/onlyoffice/config/
|
cp -r ${cfg.package}/etc/onlyoffice/documentserver/* /run/onlyoffice/config/
|
||||||
chmod u+w /run/onlyoffice/config/default.json
|
chmod u+w /run/onlyoffice/config/default.json
|
||||||
|
|
||||||
|
# Allow members of the onlyoffice group to serve files under /var/lib/onlyoffice/documentserver/App_Data
|
||||||
|
chmod g+x /var/lib/onlyoffice/documentserver
|
||||||
|
|
||||||
cp /run/onlyoffice/config/default.json{,.orig}
|
cp /run/onlyoffice/config/default.json{,.orig}
|
||||||
|
|
||||||
# for a mapping of environment variables from the docker container to json options see
|
# for a mapping of environment variables from the docker container to json options see
|
||||||
@ -284,6 +287,8 @@ in
|
|||||||
group = "onlyoffice";
|
group = "onlyoffice";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nginx.extraGroups = [ "onlyoffice" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups.onlyoffice = { };
|
users.groups.onlyoffice = { };
|
||||||
|
Loading…
Reference in New Issue
Block a user