Cat out temp files to final log.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2017-03-15 23:43:41 -07:00
parent 160030b75f
commit 77378da70a
No known key found for this signature in database
GPG key ID: 572E999E385B7BFC

View file

@ -427,7 +427,9 @@ finalWork() {
chmod 644 ${DEBUG_LOG} chmod 644 ${DEBUG_LOG}
chown "$USER":pihole ${DEBUG_LOG} chown "$USER":pihole ${DEBUG_LOG}
# copy working temp file to final log location # copy working temp file to final log location
cp /proc/$$/fd/3 "$DEBUG_LOG" cat /proc/$$/fd/3 >> "${DEBUG_LOG}"
# Straight dump of tailing the logs, can sanitize later if needed.
cat /proc/$$/fd/4 >> "${DEBUG_LOG}"
echo "::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only." echo "::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only."
if [[ "${AUTOMATED}" ]]; then if [[ "${AUTOMATED}" ]]; then