Skip to content

Commit

Permalink
Create a log file to store outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-a-s committed Jan 5, 2024
1 parent f6878be commit e6cc792
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
# Sastha Kumar N [https://github.com/Sastha-Kumar-N]
# Sabarinath Subramaniam [https://www.linkedin.com/in/sabarinath-subramaniam-a228014]

# Create a log file and add time of execution to it
printf -- "\n-----------------------------------------\
\nONECLICK WEBSITE DEPLOYER LOG\
\n$(date)\
\n-----------------------------------------\
\n" >> ~/oneclick-website-deployer.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

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

Expand Down

0 comments on commit e6cc792

Please sign in to comment.