From 63d4793a909315d0745d9622c452324d22bd1b08 Mon Sep 17 00:00:00 2001 From: rishi-salunkhe-mettle Date: Fri, 20 Dec 2024 13:00:58 -0600 Subject: [PATCH] Created a new directory to store populatedb script logs --- scripts/automatic_populatedb_prod.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/automatic_populatedb_prod.sh b/scripts/automatic_populatedb_prod.sh index 06aec4f06..861987451 100755 --- a/scripts/automatic_populatedb_prod.sh +++ b/scripts/automatic_populatedb_prod.sh @@ -6,6 +6,7 @@ SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin log_file="/etc/lantern/logs/automatic_populatedb_prod_logs.txt" current_datetime=$(date +"%Y-%m-%d %H:%M:%S") +LOGFILE=populatedb_logs_$(date +%Y%m%d%H%M%S).txt #update source data from endpoint source list and NPPES cd ../resources/prod_resources @@ -57,4 +58,4 @@ rm -f npidata_pfile echo "$current_datetime - done" >> $log_file -docker cp lantern-back-end_endpoint_manager_1:/etc/lantern/populatedb_logs.txt /etc/lantern/logs/ \ No newline at end of file +docker cp lantern-back-end_endpoint_manager_1:/etc/lantern/populatedb_logs.txt /etc/lantern/logs/populatedb_logs/${LOGFILE} \ No newline at end of file