diff --git a/nixos/modules/services/networking/unifi.nix b/nixos/modules/services/networking/unifi.nix index 6584786bb525..3a0640b0d805 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 = {