forked from opendevshop/devshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vagrant-prepare-host.sh
40 lines (35 loc) · 1.53 KB
/
vagrant-prepare-host.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#
# vagrant-prepare-host.sh
#
# Runs on your local machine (the vagrant host) to prepare source code for editing.
# This script is run automatically on `vagrant up`. You do not need to this manually.
#
# Passed argument is Vagrant Home folder.
VAGRANT_HOME=$1
DEVMASTER_VERSION=$2
cd $1
if [ ! -d source ]; then
mkdir source
fi
cd source
# Build a full devshop frontend on the host with drush make, with working-copy option.
if [ ! -d devmaster-$DEVMASTER_VERSION ]; then
drush make $VAGRANT_HOME/build-devmaster.make devmaster-$DEVMASTER_VERSION --working-copy --no-gitinfofile
cp devmaster-$DEVMASTER_VERSION/sites/default/default.settings.php devmaster-$DEVMASTER_VERSION/sites/default/settings.php
mkdir devmaster-$DEVMASTER_VERSION/sites/devshop.site
chmod 777 devmaster-$DEVMASTER_VERSION/sites -R
fi
# Clone drush packages.
if [ ! -d drush ]; then
mkdir drush
cd drush
git clone [email protected]:opendevshop/devshop_provision.git --branch $DEVMASTER_VERSION
git clone [email protected]:project/provision.git --branch 6.x-2.x
git clone [email protected]:project/provision_git.git --branch 6.x-1.x
git clone [email protected]:project/provision_logs.git --branch 6.x-1.x
git clone [email protected]:project/provision_site_backup_manager.git --branch 6.x-2.x
git clone [email protected]:project/provision_solr.git --branch 6.x-2.x
git clone [email protected]:project/provision_tasks_extra.git --branch 6.x-2.x
git clone [email protected]:project/registry_rebuild.git --branch 6.x-2.x
fi