Προσθήκη του script εγκατάστασης της εφαρμογής.

This commit is contained in:
alextselegidis@gmail.com 2013-05-16 16:00:48 +00:00
parent 2d0219b706
commit 8f573725b9
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,5 @@
Vesrion 0.1
===========
Includes an implementation of the basic flow for
the appointment reservation use case and unit testing
for the model classes of the system.

36
install.sh Normal file
View File

@ -0,0 +1,36 @@
#! /bin/bash
clear
echo "========================================="
echo " "
echo "Easy!Appointments Installation Script "
echo " "
echo "========================================="
printf "Before you continue ensure that your MAMP
\nserver is running and you already know the
\nfolder path in which the application is
\ngoing to be installed.\n\n"
read -p "Press Enter to Continue" -n 1
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
# Copy Application Files
printf "\n\nEnter destination directory:"
read DEST
cp -r "easy_appointments" $DEST
# Install MySQL Database
printf "\n>>>Installing database ..."
/Applications/MAMP/Library/bin/mysql -uroot -p
/Applications/MAMP/Library/bin/mysql "CREATE DATABASE IF NOT EXISTS easy_appointments"
/Applications/MAMP/Library/bin/mysql "easy_appointments" < "easy_appointments.sql"
printf "\n\n>>>Review your configuration.php file before trying to use the application."
# End of install operation
printf "\n\n======================================"
printf "\nInstallation completed successfully!"
read
fi