fixed permissions
[fai-configs.git] / files / etc / init.d / install-mediagoblin / DEFAULT
CommitLineData
0fe7460b
LMM
1#/bin/bash
2
e101f210 3cd GMG_PATH_TOKEN
0fe7460b
LMM
4if [ ! -d mediagoblin ]; then
5
6 # Create the GMG user
7 sudo -u postgres createuser -A -D mediagoblin
8 # Crea te GMG database
9 sudo -u postgres createdb -E UNICODE -O mediagoblin mediagoblin
10
11 git clone git://git.savannah.gnu.org/mediagoblin.git -b stable
12
13 cd mediagoblin
14 git submodule init && git submodule update
15
16 ./bootstrap.sh && ./configure && make
17 mkdir user_dev && chmod 750 user_dev
18 ./bin/easy_install flup
19
20fi