nixos/unifi: Remove old ROOT.war links before relinking

This commit is contained in:
William A. Kennington III 2014-11-14 11:45:38 -08:00
parent a3af559455
commit 826f5468ab

View File

@ -65,6 +65,7 @@ in
# Create the volatile 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"
'';