From 8f573725b97a43ba097118ca52700f11ba136bc3 Mon Sep 17 00:00:00 2001 From: "alextselegidis@gmail.com" Date: Thu, 16 May 2013 16:00:48 +0000 Subject: [PATCH] =?UTF-8?q?=CE=A0=CF=81=CE=BF=CF=83=CE=B8=CE=AE=CE=BA?= =?UTF-8?q?=CE=B7=20=CF=84=CE=BF=CF=85=20script=20=CE=B5=CE=B3=CE=BA=CE=B1?= =?UTF-8?q?=CF=84=CE=AC=CF=83=CF=84=CE=B1=CF=83=CE=B7=CF=82=20=CF=84=CE=B7?= =?UTF-8?q?=CF=82=20=CE=B5=CF=86=CE=B1=CF=81=CE=BC=CE=BF=CE=B3=CE=AE=CF=82?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Release Notes.txt | 5 +++++ install.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 install.sh diff --git a/Release Notes.txt b/Release Notes.txt index e69de29b..5e65810e 100644 --- a/Release Notes.txt +++ b/Release Notes.txt @@ -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. \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..1bd4acbb --- /dev/null +++ b/install.sh @@ -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