Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed not waiting for mysql to start on faster computers and fixed docs #19

Merged
merged 1 commit into from
Jul 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ CRM_DB_USER="churchcrm"
CRM_DB_PASS="churchcrm"
CRM_DB_NAME="churchcrm"


RET=1
while [[ RET -ne 0 ]]; do
echo "=> Waiting for confirmation of MySQL service startup"
sleep 5
sudo mysql -u"$DB_USER" -p"$DB_PASS" -e "status" > /dev/null 2>&1
RET=$?
done

echo "=> Creating MySQL church CRM user with church CRM password"

sudo mysql -u"$DB_USER" -p"$DB_PASS" -e "CREATE DATABASE $CRM_DB_NAME CHARACTER SET utf8;"
sudo mysql -u"$DB_USER" -p"$DB_PASS" -e "CREATE USER '$CRM_DB_USER'@'$DB_HOST' IDENTIFIED BY '$CRM_DB_PASS';"
sudo mysql -u"$DB_USER" -p"$DB_PASS" -e "GRANT ALL PRIVILEGES ON $CRM_DB_NAME.* TO '$CRM_DB_NAME'@'$DB_HOST' WITH GRANT OPTION;"

#Install churchcrm db
sudo mysql -u"$CRM_DB_USER" -p"$CRM_DB_PASS" "$CRM_DB_NAME" < /vagrant/mysql/install/Install.sql
sudo mysql -u"$CRM_DB_USER" -p"$CRM_DB_PASS" "$CRM_DB_NAME" < /vagrant/mysql/install/Install.sql
8 changes: 7 additions & 1 deletion docs/Development/Vagrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ Just clone and run Vagrant up

##Server

Access the Project at http://192.168.33.10/
Access the Project at http://192.168.33.10/


###Login Info

User: Admin
Password: churchinfoadmin