1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

unifi: chown the data dir as well.

It needs to be writeable.
This commit is contained in:
Svein Ove Aas 2016-08-16 20:34:26 +01:00
parent 9adad8612b
commit e3f0a09b6d

View file

@ -79,9 +79,9 @@ in
environment.LD_LIBRARY_PATH = with pkgs.stdenv; "${cc.cc.lib}/lib";
preStart = ''
# Ensure privacy of state
chown unifi "${stateDir}"
chmod 0700 "${stateDir}"
# Ensure privacy of state and data.
chown unifi "${stateDir}" "${dataDir}"
chmod 0700 "${stateDir}" "${dataDir}"
# Create the volatile webapps
rm -rf "${stateDir}/webapps"