mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-23 03:26:02 +03:00
27 lines
573 B
Bash
27 lines
573 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
|
||
|
if [ -n "$TRAVIS" ]; then
|
||
|
|
||
|
echo 'Travis config not yet written'
|
||
|
cp -Rp $DIR/resources /resources
|
||
|
/bin/bash /resources/Scripts/Provision.sh
|
||
|
|
||
|
else
|
||
|
|
||
|
# Since not in travis, lets load up a system with vagrant
|
||
|
|
||
|
cd $DIR/vagrant
|
||
|
|
||
|
VAGRANTSTATUS=$(vagrant status)
|
||
|
|
||
|
# If vagrant is running already, reprovision it so it has fresh email boxes.
|
||
|
if echo "$VAGRANTSTATUS" | egrep -q "running" ; then
|
||
|
vagrant provision
|
||
|
else
|
||
|
vagrant up --provision
|
||
|
fi
|
||
|
cd $DIR
|
||
|
|
||
|
fi
|