nixos/unifi: Remove old ROOT.war links before relinking
This commit is contained in:
parent
a3af559455
commit
826f5468ab
@ -65,6 +65,7 @@ in
|
|||||||
# Create the volatile webapps
|
# Create the volatile webapps
|
||||||
mkdir -p "${stateDir}/webapps"
|
mkdir -p "${stateDir}/webapps"
|
||||||
chown unifi "${stateDir}/webapps"
|
chown unifi "${stateDir}/webapps"
|
||||||
|
rm -f "{stateDir}/webapps/ROOT.war"
|
||||||
ln -s "${pkgs.unifi}/webapps/ROOT.war" "${stateDir}/webapps/ROOT.war"
|
ln -s "${pkgs.unifi}/webapps/ROOT.war" "${stateDir}/webapps/ROOT.war"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user