git.iko.soy/typeable/nixpkgs
on master help sign in
unifi: Clean all of webapps at start and stop
commit8f0d65e2df7bea5502b7be9d6b5ba74bbc880a1d authorWilliam A. Kennington III <william@wkennington.com> dateMon 24 Nov 2014, 00:22 (12 years ago) parent6872a4a
1 file changed+2−2
nixos/modules/services/networking/unifi.nix+2−2
nixos/modules/services/networking/unifi.nix+2−2
@@ -63,14 +63,14 @@ in
6363 chmod 0700 "${stateDir}"
6464
6565 # Create the volatile webapps
66+ rm -rf "${stateDir}/webapps"
6667 mkdir -p "${stateDir}/webapps"
6768 chown unifi "${stateDir}/webapps"
68− rm -f "${stateDir}/webapps/ROOT.war"
6969 ln -s "${pkgs.unifi}/webapps/ROOT.war" "${stateDir}/webapps/ROOT.war"
7070 '';
7171
7272 postStop = ''
73− rm "${stateDir}/webapps/ROOT.war"
73+ rm "${stateDir}/webapps"
7474 '';
7575
7676 serviceConfig = {