-
Notifications
You must be signed in to change notification settings - Fork 2
/
provisioning.sh
41 lines (31 loc) · 1.07 KB
/
provisioning.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
41
#!/usr/bin/env bash
#
# Vagrant provisioning script
#
# Copyright 2014 Michael Weibel <[email protected]>
# Copyright 2015 Adhearsion Foundation Inc <[email protected]>
# License: MIT
#
#
# Install Prosody XMPP server
#
echo "deb http://packages.prosody.im/debian precise main" > /etc/apt/sources.list.d/prosody.list
wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add -
apt-get update
apt-get install -y liblua5.1-bitop prosody lua-event
# Install Websockets module
wget -O /usr/lib/prosody/modules/mod_websocket.lua http://prosody-modules.googlecode.com/hg/mod_websocket/mod_websocket.lua
# Install Carbons module
wget -O /usr/lib/prosody/modules/mod_websocket.lua http://prosody-modules.googlecode.com/hg/mod_carbons/mod_carbons.lua
# Place config
cp /vagrant/prosody.cfg.lua /etc/prosody/prosody.cfg.lua
/etc/init.d/prosody restart
#
# Install nginx for static file serving
#
apt-get install -y nginx
cp /vagrant/nginx-default.conf /etc/nginx/sites-available/default
/etc/init.d/nginx restart
cd /vagrant
npm install && bower install
gulp watch