added inital isntall for gmg, no configfile yet
authorLisa Marie Maginnis <lisam@fsf.org>
Fri, 26 Feb 2016 23:25:28 +0000 (18:25 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Fri, 26 Feb 2016 23:25:28 +0000 (18:25 -0500)
scripts/GMG/05_create_local_user.sh [new file with mode: 0755]
scripts/GMG/10_create_dir.sh [new file with mode: 0755]
scripts/GMG/15_install_gmg.sh [new file with mode: 0755]

diff --git a/scripts/GMG/05_create_local_user.sh b/scripts/GMG/05_create_local_user.sh
new file mode 100755 (executable)
index 0000000..e07891d
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Create mediagoblin user & group
+$ROOTCMD sudo useradd -c "GNU MediaGoblin system account" -d /var/lib/mediagoblin -m -r -g nginx mediagoblin
+$ROOTCMD sudo groupadd mediagoblin && sudo usermod --append -G mediagoblin mediagoblin
diff --git a/scripts/GMG/10_create_dir.sh b/scripts/GMG/10_create_dir.sh
new file mode 100755 (executable)
index 0000000..0143fce
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+$ROOTCMD sudo mkdir -p $GMG_PATH && $ROOTCMD sudo chown -hR mediagoblin:www-data $GMG_PATH
+
diff --git a/scripts/GMG/15_install_gmg.sh b/scripts/GMG/15_install_gmg.sh
new file mode 100755 (executable)
index 0000000..fc60f11
--- /dev/null
@@ -0,0 +1,17 @@
+#!/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
+