1
0
mirror of https://github.com/moparisthebest/pi-hole synced 2024-11-25 10:42:14 -05:00

save output to log file instead

Since the progress bar hides the output now.  Instead of destroying it,
send it to a log file instead so users who want to see it still can.
This commit is contained in:
Jacob Salmela 2015-10-31 09:15:57 -05:00 committed by dschaper
parent 72cf5c91a5
commit 37f255d761

View File

@ -10,6 +10,8 @@
# curl -L install.pi-hole.net | bash # curl -L install.pi-hole.net | bash
######## VARIABLES ######### ######## VARIABLES #########
instalLogLoc=/etc/pihole/install.log
# Get the screen size in case we need a full-screen message and so we can display a dialog that is sized nicely # Get the screen size in case we need a full-screen message and so we can display a dialog that is sized nicely
screenSize=$(stty -a | tr \; \\012 | egrep 'rows|columns' | cut '-d ' -f3) screenSize=$(stty -a | tr \; \\012 | egrep 'rows|columns' | cut '-d ' -f3)
@ -202,7 +204,7 @@ XXX
EOF EOF
# Execute the command in the background (hidden from the user, not actually a background process) # Execute the command in the background (hidden from the user, not actually a background process)
${commands[${echoes[$k]}]} > /dev/null 2>&1 ${commands[${echoes[$k]}]} > $instalLogLoc 2>&1
done done
# As the loop is progressing, the output is sent to whiptail to be displayed to the user # As the loop is progressing, the output is sent to whiptail to be displayed to the user