From a48b54e62bd69ca3752552327ea72eae04aac357 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Mon, 23 Jan 2023 10:03:02 +0100
Subject: [PATCH] fix: move back to local /tmp/ filesystem, because Path::Tiny
 has issues with creating temp files on NFS shares

---
 .../usr/local/lib/systemd/system/repair_daemon_ddz.service.j2   | 2 +-
 .../usr/local/lib/systemd/system/repair_daemon_digas.service.j2 | 2 +-
 .../local/lib/systemd/system/repair_daemon_fotothek.service.j2  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/usr/local/lib/systemd/system/repair_daemon_ddz.service.j2 b/templates/usr/local/lib/systemd/system/repair_daemon_ddz.service.j2
index 94eec00..8dd8627 100644
--- a/templates/usr/local/lib/systemd/system/repair_daemon_ddz.service.j2
+++ b/templates/usr/local/lib/systemd/system/repair_daemon_ddz.service.j2
@@ -6,7 +6,7 @@ After=network.target
 ExecStart=/usr/bin/perl -I/usr/lib/perl5 /usr/bin/repair_daemon.pl \
 	--sourcedir=/mnt/lza_repair_ddz/unprocessed/ \
 	--targetdir=/mnt/lza_repair_ddz/processed/ \
-	--workdir=/mnt/lza_repair_ddz/workdir/ \
+	--workdir=/tmp/ \
 	--logdir=/mnt/lza_repair_ddz/log/ \
 	--minwait=65 \
 	--minfileage=65 \
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 c62a03c..660103a 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
@@ -6,7 +6,7 @@ After=network.target
 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/ \
-	--workdir=/mnt/lza_repair_digas/workdir/ \
+	--workdir=/tmp/ \
 	--logdir=/mnt/lza_repair_digas/log/ \
 	--minwait=65 \
 	--minfileage=65 \
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 e4b435f..d68df18 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
@@ -6,7 +6,7 @@ After=network.target
 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/ \
-	--workdir=/mnt/lza_repair_fotothek/workdir/ \
+	--workdir=/tmp/ \
 	--logdir=/mnt/lza_repair_fotothek/log/ \
 	--minwait=65 \
 	--minfileage=65 \
-- 
GitLab