From e3f0a09b6dfee8477eccedeb2994643b5852897f Mon Sep 17 00:00:00 2001 From: Svein Ove Aas Date: Tue, 16 Aug 2016 20:34:26 +0100 Subject: [PATCH] unifi: chown the data dir as well. It needs to be writeable. --- nixos/modules/services/networking/unifi.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index cb5a88e67aae..e1f4755321f6 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -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"