Skip to content
Snippets Groups Projects
Commit eeac6e39 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: update exit_strategy.pl perl script invocation

parent d129b345
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ LOGFILE="/tmp/exit_log_${DATE}.log" ...@@ -18,6 +18,7 @@ LOGFILE="/tmp/exit_log_${DATE}.log"
EXIT_PERL="/usr/local/bin/rosettaExitStrategy/perl/exit_strategy.pl" EXIT_PERL="/usr/local/bin/rosettaExitStrategy/perl/exit_strategy.pl"
EXIT_DB="/tmp/exit.db" 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 # check user privileges
if [ $UID -ne 0 ] ; then if [ $UID -ne 0 ] ; then
...@@ -52,7 +53,7 @@ echo -e "${MESSAGE}" | tee -a "${LOGFILE}" ...@@ -52,7 +53,7 @@ echo -e "${MESSAGE}" | tee -a "${LOGFILE}"
# generate exit database # generate exit database
echo "${INFO}Begin: $(date)" | tee -a "${LOGFILE}" echo "${INFO}Begin: $(date)" | tee -a "${LOGFILE}"
echo -e "${INFO}Generating SQLite Exit Database." | 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 [[ $? -ne 0 ]] && echo "${ERROR} Couldn't create SQLite Exit Database, exiting." | tee -a "${LOGFILE}" && exit 10
echo "${INFO}End: $(date)" | tee -a "${LOGFILE}" echo "${INFO}End: $(date)" | tee -a "${LOGFILE}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment