Skip to content

Commit

Permalink
Merge pull request #470 from onc-healthit/LANTERN-801-populatedb-logs…
Browse files Browse the repository at this point in the history
…-directory

LANTERN-801: Created a new directory to store populatedb script logs
  • Loading branch information
vishnu-mettles authored Dec 20, 2024
2 parents 860d224 + 63d4793 commit 5b68fb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/automatic_populatedb_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/
docker cp lantern-back-end_endpoint_manager_1:/etc/lantern/populatedb_logs.txt /etc/lantern/logs/populatedb_logs/${LOGFILE}

0 comments on commit 5b68fb0

Please sign in to comment.