unifi: chown the data dir as well.
It needs to be writeable.
This commit is contained in:
parent
9adad8612b
commit
e3f0a09b6d
@ -79,9 +79,9 @@ in
|
|||||||
environment.LD_LIBRARY_PATH = with pkgs.stdenv; "${cc.cc.lib}/lib";
|
environment.LD_LIBRARY_PATH = with pkgs.stdenv; "${cc.cc.lib}/lib";
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
# Ensure privacy of state
|
# Ensure privacy of state and data.
|
||||||
chown unifi "${stateDir}"
|
chown unifi "${stateDir}" "${dataDir}"
|
||||||
chmod 0700 "${stateDir}"
|
chmod 0700 "${stateDir}" "${dataDir}"
|
||||||
|
|
||||||
# Create the volatile webapps
|
# Create the volatile webapps
|
||||||
rm -rf "${stateDir}/webapps"
|
rm -rf "${stateDir}/webapps"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user