From 2165506db4a8041d17965875554b0effcfa0d866 Mon Sep 17 00:00:00 2001 From: NavaL Date: Mon, 8 Feb 2016 16:03:46 +0100 Subject: Updated read me Issue #593 --- vagrant_setup.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 vagrant_setup.sh (limited to 'vagrant_setup.sh') diff --git a/vagrant_setup.sh b/vagrant_setup.sh new file mode 100644 index 00000000..4e7576ee --- /dev/null +++ b/vagrant_setup.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# + +hash vagrant 2>/dev/null || { echo >&2 "Vagrant is not installed. Aborting."; exit 1; } +hash vboxmanage 2>/dev/null || hash virsh 2>/dev/null || { echo >&2 "Please install Virtualbox or Libvirt first and try again."; exit 1;} + +vagrant_ssh (){ + vagrant ssh -c "export LANG=en_US.UTF-8; export LANGUAGE=en_US.UTF-8; export LC_ALL=en_US.UTF-8; cd $1; $2" +} + +if [ -d ./pixelated-user-agent ] +then + cd pixelated-user-agent + /usr/bin/git pull --rebase +else + /usr/bin/git clone https://github.com/pixelated/pixelated-user-agent.git + cd pixelated-user-agent +fi + +vagrant up +vagrant_ssh '/vagrant/service' './go setup' +vagrant ssh -- cgit v1.2.3