diff options
author | William A. Kennington III <william@wkennington.com> | 2014-11-24 00:22:12 -0800 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-11-24 00:22:24 -0800 |
commit | 8f0d65e2df7bea5502b7be9d6b5ba74bbc880a1d (patch) | |
tree | c6b72a9320a1e02741001efd611bb0539d287143 /nixos/modules/services/networking/unifi.nix | |
parent | 6872a4a79793ef0c4e2569a3e1ce1cdc99cce9fd (diff) |
unifi: Clean all of webapps at start and stop
Diffstat (limited to 'nixos/modules/services/networking/unifi.nix')
-rw-r--r-- | nixos/modules/services/networking/unifi.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index 6584786bb5258..3a0640b0d805c 100644 --- a/nixos/modules/services/networking/unifi.nix +++ b/nixos/modules/services/networking/unifi.nix @@ -63,14 +63,14 @@ in chmod 0700 "${stateDir}" # Create the volatile webapps + rm -rf "${stateDir}/webapps" mkdir -p "${stateDir}/webapps" chown unifi "${stateDir}/webapps" - rm -f "${stateDir}/webapps/ROOT.war" ln -s "${pkgs.unifi}/webapps/ROOT.war" "${stateDir}/webapps/ROOT.war" ''; postStop = '' - rm "${stateDir}/webapps/ROOT.war" + rm "${stateDir}/webapps" ''; serviceConfig = { |