inital gmg work
authorLisa Marie Maginnis <lisam@fsf.org>
Fri, 26 Feb 2016 22:54:26 +0000 (17:54 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Fri, 26 Feb 2016 22:54:26 +0000 (17:54 -0500)
package_config/GMG [new file with mode: 0644]
package_config/PSQL [new file with mode: 0644]
scripts/GMG/00_create_local_user.sh [new file with mode: 0755]
scripts/GMG/00_create_psql_user.sh [new file with mode: 0755]

diff --git a/package_config/GMG b/package_config/GMG
new file mode 100644 (file)
index 0000000..75a6893
--- /dev/null
@@ -0,0 +1,11 @@
+PACKAGES aptitude GMG
+git-core
+python
+python-dev
+python-lxml
+python-imaging
+python-virtualenv
+npm
+nodejs-legacy
+automake
+nginx
diff --git a/package_config/PSQL b/package_config/PSQL
new file mode 100644 (file)
index 0000000..0d8f7af
--- /dev/null
@@ -0,0 +1,4 @@
+PACKAGES aptitude PSQL
+postgresql
+postgresql-client
+python-psycopg2
diff --git a/scripts/GMG/00_create_local_user.sh b/scripts/GMG/00_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/00_create_psql_user.sh b/scripts/GMG/00_create_psql_user.sh
new file mode 100755 (executable)
index 0000000..e124317
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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
+
+