Last active
August 29, 2015 14:25
-
-
Save ellipsonic/0ac101e97d55dea60113 to your computer and use it in GitHub Desktop.
OrangeHRMS app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Instructions to use this script | |
# | |
#chmod +x SCRIPTNAME.sh | |
# | |
#sudo ./SCRIPTNAME.sh | |
echo "###################################################################################" | |
echo "Please be Patient: Installation will start now.......and it will take some time :)" | |
echo "###################################################################################" | |
#Update the repositories | |
sudo apt-get update | |
#Apache, Php, MySQL and required packages installation | |
sudo apt-get -y install apache2 | |
sudo apt-get -y install php5 | |
sudo apt-get -y install libapache2-mod-php5 | |
sudo apt-get -y install php5-mcrypt | |
sudo apt-get -y install php5-curl | |
sudo apt-get -y install php5-mysql | |
sudo apt-get -y install php5-gd | |
sudo apt-get -y install php5-cli | |
sudo apt-get -y install php5-dev | |
sudo apt-get -y install mysql-client | |
php5enmod mcrypt | |
sudo apt-get -y install git | |
# Remove default htmls | |
rm -f /usr/share/apache2/default-site/index.html | |
rm -f /usr/share/apache2/default-site/index.html | |
rm -f /var/www/html/index.html | |
# Git all php files. 84.200.53.77 is the db ip address | |
cd /var/www/html/ | |
git clone https://github.com/ellipsonic/orangehrm_app.git . | |
sed -i "s/localhost/84.200.53.77/g" /var/www/html/lib/confs/Conf.php | |
#Restart all the installed services to verify that everything is installed properly | |
echo -e "\n" | |
service apache2 restart > /dev/null | |
echo -e "\n" | |
if [ $? -ne 0 ]; then | |
echo "Please Check the Install Services, There is some $(tput bold)$(tput setaf 1)Problem$(tput sgr0)" | |
else | |
echo "Installed Services run $(tput bold)$(tput setaf 2)Sucessfully$(tput sgr0)" | |
fi | |
echo -e "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment