unifi: chown the data dir as well.

It needs to be writeable.

+3 -3
+3 -3
nixos/modules/services/networking/unifi.nix
··· 79 79 environment.LD_LIBRARY_PATH = with pkgs.stdenv; "${cc.cc.lib}/lib"; 80 80 81 81 preStart = '' 82 - # Ensure privacy of state 83 - chown unifi "${stateDir}" 84 - chmod 0700 "${stateDir}" 82 + # Ensure privacy of state and data. 83 + chown unifi "${stateDir}" "${dataDir}" 84 + chmod 0700 "${stateDir}" "${dataDir}" 85 85 86 86 # Create the volatile webapps 87 87 rm -rf "${stateDir}/webapps"