Skip to content

Commit 8d36c64

Browse files
committed
nixos/archiver-appliance: purify Tomcat on start
Needed because webapps are extracted into their own directories, and when the .war files are upgraded, the extracted directories aren't, which makes Tomcat start the old Archiver Appliance. This also would purge old unused libraries, which is a good thing.
1 parent ba36388 commit 8d36c64

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nixos/modules/archiver-appliance.nix

+6
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@ in {
284284
services.tomcat = {
285285
enable = true;
286286

287+
# Needed to purge old configurations on upgrades,
288+
# such as old `commonLibs`
289+
# and also `webapps` which are extracted,
290+
# but wouldn't change when updated.
291+
purifyOnStart = true;
292+
287293
webapps = [cfg.package];
288294

289295
extraConfigFiles = [

0 commit comments

Comments
 (0)