Browse Source

Add Installation Messages

old-stable
Mitesh Shah 12 years ago
parent
commit
63972ab2b7
  1. 22
      install.sh

22
install.sh

@ -28,33 +28,37 @@ INSTALLLOG=/var/log/easyengine/install.log
# Pre Checks To Avoid Later Screw Ups # Pre Checks To Avoid Later Screw Ups
# Checking Logs Directory # Checking Logs Directory
echo | tee -ai $INSTALLLOG
echo
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... \e[0m" echo -e "\033[34m Creating Easy Engine Log Directory... \e[0m" | tee -ai $INSTALLLOG
mkdir -p $LOGDIR || OwnError "Unable To Create Log Directory $LOGDIR" mkdir -p $LOGDIR || OwnError "Unable To Create Log Directory $LOGDIR"
fi fi
# Checking Tee # Checking Tee
if [ ! -x /usr/bin/tee ] if [ ! -x /usr/bin/tee ]
then then
echo -e "\033[31m Tee Command Not Found !! \e[0m" echo -e "\033[31m Tee Command Not Found !! \e[0m" | tee -ai $INSTALLLOG
echo -e "\033[34m Installing Tee \e[0m" echo -e "\033[34m Installing Tee \e[0m" | tee -ai $INSTALLLOG
sudo apt-get -y install coreutils || OwnError "Unable to install tee" sudo apt-get -y install coreutils || OwnError "Unable to install tee"
fi fi
# Checking Wget # Checking Wget
if [ ! -x /usr/bin/wget ] if [ ! -x /usr/bin/wget ]
then then
echo -e "\033[31m Wget Command Not Found !! \e[0m" echo -e "\033[31m Wget Command Not Found !! \e[0m" | tee -ai $INSTALLLOG
echo -e "\033[34m Installing Wget \e[0m" echo -e "\033[34m Installing Wget \e[0m" | tee -ai $INSTALLLOG
sudo apt-get -y install wget || OwnError "Unable To Install Wget" sudo apt-get -y install wget || OwnError "Unable To Install Wget"
fi fi
# Checking Tar # Checking Tar
if [ ! -x /bin/tar ] if [ ! -x /bin/tar ]
then then
echo -e "\033[31m Tar Command Not Found !! \e[0m" echo -e "\033[31m Tar Command Not Found !! \e[0m" | tee -ai $INSTALLLOG
echo -e "\033[34m Installing Tar \e[0m" echo -e "\033[34m Installing Tar \e[0m" | tee -ai $INSTALLLOG
sudo apt-get -y install tar || OwnError "Unable To Install Tar" sudo apt-get -y install tar || OwnError "Unable To Install Tar"
fi fi
@ -69,8 +73,8 @@ fi
# Checking Git # Checking Git
if [ ! -x /usr/bin/git ] if [ ! -x /usr/bin/git ]
then then
echo -e "\033[31m Git Command Not Found !! \e[0m" echo -e "\033[31m Git Command Not Found !! \e[0m" | tee -ai $INSTALLLOG
echo -e "\033[34m Installing Git, Please Wait... \e[0m" echo -e "\033[34m Installing Git, Please Wait... \e[0m" | tee -ai $INSTALLLOG
sudo apt-get -y install git-core || OwnError "Unable To Install Git" sudo apt-get -y install git-core || OwnError "Unable To Install Git"
fi fi

Loading…
Cancel
Save