Removed create psql user, movoed to init.d style install, changed install script...
[fai-configs.git] / files / etc / init.d / install-mediagoblin / DEFAULT
... / ...
CommitLineData
1#/bin/bash
2
3cd "${GMG_PATH}"
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