From b14a42109cbdbaf7d7b036d16075f182fd25b781 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Wed, 20 Nov 2013 14:44:08 +0530 Subject: [PATCH] Log All The Output In /var/log/easyengine/install.log --- usr/local/sbin/easyengine | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 7e8ec861..efdb3da9 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -15,6 +15,18 @@ # Make Variables Available For Later Use LOGDIR=/var/log/easyengine ERRORLOG=/var/log/easyengine/error.log +INSTALLLOG=/var/log/easyengine/install.log + +# Main EasyEngine Function To Log All The Outputs +EasyEngine() +{ + +# Add TimeStamps In Install Log File +echo &>> $INSTALLLOG +echo &>> $INSTALLLOG +echo -e "\033[34m EasyEngine Installation Started At [$(date)] \e[0m" &>> $INSTALLLOG +echo -e "\033[34m EasyEngine Command: $0 $@ \e[0m" &>> $INSTALLLOG + # Check Auto Assume Yes Or No To Apt-Get grep apt-get-assume-yes /etc/easyengine/ee.conf | grep -i true &>> /dev/null @@ -1850,3 +1862,7 @@ then fi + +} + +EasyEngine $@ | tee -ai $INSTALLLOG