Skip to content

Commit

Permalink
Create an error log along with total log file
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-a-s committed Jan 5, 2024
1 parent e6cc792 commit 5f118d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ printf -- "\n-----------------------------------------\
\nONECLICK WEBSITE DEPLOYER LOG\
\n$(date)\
\n-----------------------------------------\
\n" >> ~/oneclick-website-deployer.log
\n" >> ~/oneclick-website-deployer.log >> ~/oneclick-website-deployer-errors.log

# Redirect both stdout and stderr to log file yet display all output in the terminal
exec > >(tee -a ~/oneclick-website-deployer.log) 2>&1
# Redirect stdout to one log file and stderr to another
exec > >(tee -a ~/oneclick-website-deployer.log) 2>&1 2> >(tee -a ~/error_output.txt >&2)

# Define web root folder
export DRUPAL_HOME=/var/www/html
Expand Down

0 comments on commit 5f118d7

Please sign in to comment.