summaryrefslogtreecommitdiff
path: root/files/puppet/modules/pixelated/vagrant_platform.sh
blob: 67382b45e73395f8a2dd0a9e6f1cc2cb5b558150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# Issues:
# - homebrew version of git does not work nicely with submodules

hash vagrant 2>/dev/null || { echo >&2 "Vagrant is not installed.  Aborting."; exit 1; }

if [ -d ./leap_platform ]
then
  cd leap_platform
  /usr/bin/git pull
  /usr/bin/git submodule update --init
else
  /usr/bin/git clone --branch develop --recursive https://leap.se/git/leap_platform.git
  cd leap_platform
fi

vagrant up pixelated --no-provision  || vagrant reload
vagrant provision