--- /dev/null
+#/bin/bash
+
+cd "${GMG_PATH}"
+if [ ! -d mediagoblin ]; then
+
+ # Create the GMG user
+ sudo -u postgres createuser -A -D mediagoblin
+ # Crea te GMG database
+ sudo -u postgres createdb -E UNICODE -O mediagoblin mediagoblin
+
+ git clone git://git.savannah.gnu.org/mediagoblin.git -b stable
+
+ cd mediagoblin
+ git submodule init && git submodule update
+
+ ./bootstrap.sh && ./configure && make
+ mkdir user_dev && chmod 750 user_dev
+ ./bin/easy_install flup
+
+fi
+++ /dev/null
-#!/bin/bash
-
-# Create the GMG user
-$ROOTCMD sudo -u postgres createuser -A -D mediagoblin
-# Create GMG database
-$ROOTCMD sudo -u postgres createdb -E UNICODE -O mediagoblin mediagoblin
-
-
#!/bin/bash
-$ROOTCMD mkdir -p $GMG_PATH && $ROOTCMD chown -hR mediagoblin:www-data $GMG_PATH
+if [ ! -d $GMG_PATH ]; then
+ $ROOTCMD mkdir -p $GMG_PATH && $ROOTCMD chown -hR mediagoblin:www-data $GMG_PATH
+fi
#!/bin/bash
-
-cd $target/$GMG_PATH
-if [ ! -d mediagoblin ]; then
-
- $ROOTCMD git clone git://git.savannah.gnu.org/mediagoblin.git -b stable
- $ROOTCMD cd mediagoblin
- $ROOTCMD git submodule init && $ROOTCMD git submodule update
-
-
- $ROOTCMD ./bootstrap.sh && $ROOTCMD ./configure && $ROOTCMD make
- $ROOTCMD mkdir user_dev && $ROOTCMD chmod 750 user_dev
- $ROOTCMD ./bin/easy_install flup
-
-fi
+fcopy -v /etc/init.d/
+$ROOTCMD update-rc.d mediagoblin defaults