From eeac6e393381d1587321f4d957fd7e6eca270919 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de>
Date: Mon, 7 Mar 2022 12:06:44 +0100
Subject: [PATCH] fix: update exit_strategy.pl perl script invocation

---
 templates/test_exit_strategy.sh.j2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/test_exit_strategy.sh.j2 b/templates/test_exit_strategy.sh.j2
index 3a462a3..2cab293 100644
--- a/templates/test_exit_strategy.sh.j2
+++ b/templates/test_exit_strategy.sh.j2
@@ -18,6 +18,7 @@ LOGFILE="/tmp/exit_log_${DATE}.log"
 
 EXIT_PERL="/usr/local/bin/rosettaExitStrategy/perl/exit_strategy.pl"
 EXIT_DB="/tmp/exit.db"
+EXIT_RECOVERY="--recovery"	# set to empty string to disable recovery mode or to "--recovery" to enable it
 
 # check user privileges
 if [ $UID -ne 0 ] ; then
@@ -52,7 +53,7 @@ echo -e "${MESSAGE}" | tee -a "${LOGFILE}"
 # generate exit database
 echo "${INFO}Begin: $(date)" | tee -a "${LOGFILE}"
 echo -e "${INFO}Generating SQLite Exit Database." | tee -a "${LOGFILE}"
-perl "${EXIT_PERL}" "${EXIT_DB}" "${MOUNTPOINT}" 2>> "${LOGFILE}"
+perl "${EXIT_PERL}" "${EXIT_RECOVERY}" --sqlitedb-file="${EXIT_DB}" "${MOUNTPOINT}" 2>> "${LOGFILE}"
 [[ $? -ne 0 ]] && echo "${ERROR} Couldn't create SQLite Exit Database, exiting." | tee -a "${LOGFILE}" && exit 10
 echo "${INFO}End: $(date)" | tee -a "${LOGFILE}"
 
-- 
GitLab