forked from diaspora/diaspora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-fedora-diaspora.sh
executable file
·48 lines (36 loc) · 1.12 KB
/
bootstrap-fedora-diaspora.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
42
43
44
45
46
47
48
#!/bin/bash
export DIASPORADIR=`pwd`
echo "####"
echo "Installing build deps ..."
echo "####"
sleep 3
su -c "yum install git bison svn autoconf sqlite-devel gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel ImageMagick git rubygems libxslt libxslt-devel libxml2 libxml2-devel openssl-devel"
echo "####"
echo "Installing RVM ..."
echo "####"
sleep 3
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone --depth 1 git://github.com/wayneeseguin/rvm.git && cd rvm && ./install
echo "####"
echo "Installing RVM into bashrc and sourcing bash ..."
echo "####"
sleep 3
if [[ `grep -l "rvm/scripts/rvm" $HOME/.bashrc | wc -l` -eq 0 ]]; then
echo 'if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi' >> $HOME/.bashrc
fi
source $HOME/.bashrc
echo "####"
echo "Installing ruby (will take forever) ..."
echo "####"
sleep 3
rvm install ruby-1.8.7-p302
rvm --default ruby-1.8.7
echo "####"
echo "Installing bundler ..."
echo "####"
sleep 3
gem install bundler
echo "####"
echo "Installing deps with bundle ..."
echo "####"
sleep 3
pushd $DIASPORADIR && bundle install && popd