|
@ -26,16 +26,17 @@ OwnError() |
|
|
|
|
|
|
|
|
# Pre Checks To Avoid Later Screw Ups |
|
|
# Pre Checks To Avoid Later Screw Ups |
|
|
# Checking Logs Directory |
|
|
# Checking Logs Directory |
|
|
echo &>> $INSTALLLOG |
|
|
|
|
|
echo &>> $INSTALLLOG |
|
|
|
|
|
echo -e "\033[34m EasyEngine Installation Started `date +"%d-%b-%Y %H:%M:%S"` \e[0m" | tee -ai $INSTALLLOG |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d $LOGDIR ] |
|
|
if [ ! -d $LOGDIR ] |
|
|
then |
|
|
then |
|
|
echo -e "\033[34m Creating Easy Engine Log Directory, Please Wait... \e[0m" | tee -ai $INSTALLLOG |
|
|
echo -e "\033[34m Creating Easy Engine Log Directory, Please Wait... \e[0m" |
|
|
mkdir -p $LOGDIR || OwnError "Unable To Create Log Directory $LOGDIR" |
|
|
mkdir -p $LOGDIR || OwnError "Unable To Create Log Directory $LOGDIR" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo &>> $INSTALLLOG |
|
|
|
|
|
echo &>> $INSTALLLOG |
|
|
|
|
|
echo -e "\033[34m EasyEngine Installation Started `date +"%d-%b-%Y %H:%M:%S"` \e[0m" | tee -ai $INSTALLLOG |
|
|
|
|
|
|
|
|
# Checking Tee |
|
|
# Checking Tee |
|
|
if [ ! -x /usr/bin/tee ] |
|
|
if [ ! -x /usr/bin/tee ] |
|
|
then |
|
|
then |
|
|