From 49b60bfb8c03a2e266708964bacecf8d4cb12c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Tue, 7 Nov 2023 15:35:01 +0100 Subject: [PATCH] fix: moar cachefiles --- .../usr/local/lib/systemd/system/repair_daemon_digas.service.j2 | 1 + .../local/lib/systemd/system/repair_daemon_fotothek.service.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 b/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 index d982280..d9af283 100644 --- a/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 +++ b/templates/usr/local/lib/systemd/system/repair_daemon_digas.service.j2 @@ -3,6 +3,7 @@ Description=Repair Tool Daemon (DiGAS) After=network.target [Service] +ExecStartPre=/usr/bin/rm -f /home/{{ vault_service_user }}/.cache/SLUB_LZA_Reparaturtool.cache ExecStart=/usr/bin/perl -I/usr/lib/perl5 /usr/bin/repair_daemon.pl \ --sourcedir=/mnt/lza_repair_digas/unprocessed/ \ --targetdir=/mnt/lza_repair_digas/processed/ \ diff --git a/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 b/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 index c777be5..b5d34ad 100644 --- a/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 +++ b/templates/usr/local/lib/systemd/system/repair_daemon_fotothek.service.j2 @@ -3,6 +3,7 @@ Description=Repair Tool Daemon (Fotothek) After=network.target [Service] +ExecStartPre=/usr/bin/rm -f /home/{{ vault_service_user }}/.cache/SLUB_LZA_Reparaturtool.cache ExecStart=/usr/bin/perl -I/usr/lib/perl5 /usr/bin/repair_daemon.pl \ --sourcedir=/mnt/lza_repair_fotothek/unprocessed/ \ --targetdir=/mnt/lza_repair_fotothek/processed/ \ -- GitLab