Replace the website url by github url
[pixelated-user-agent.git] / debian_setup.sh
1 #!/bin/bash
2 #
3
4 function clone_repo {
5     if [ -d ./pixelated-user-agent ]
6     then
7       cd pixelated-user-agent
8       /usr/bin/git pull --rebase
9       rm -rf web-ui/node_modules
10     else
11       /usr/bin/git clone https://github.com/pixelated/pixelated-user-agent.git
12       cd pixelated-user-agent
13     fi
14 }
15
16 sudo apt-get install -y puppet git </dev/null
17 clone_repo
18 sudo puppet apply --modulepath='provisioning/modules' provisioning/manifests/debian.pp
19 ./install-pixelated.sh -v ~/.virtualenv/user-agent-venv