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