From 788639b3a176ed7d58a616354898e567613ddaf4 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Fri, 26 Feb 2016 17:54:26 -0500 Subject: [PATCH] inital gmg work --- package_config/GMG | 11 +++++++++++ package_config/PSQL | 4 ++++ scripts/GMG/00_create_local_user.sh | 5 +++++ scripts/GMG/00_create_psql_user.sh | 8 ++++++++ 4 files changed, 28 insertions(+) create mode 100644 package_config/GMG create mode 100644 package_config/PSQL create mode 100755 scripts/GMG/00_create_local_user.sh create mode 100755 scripts/GMG/00_create_psql_user.sh diff --git a/package_config/GMG b/package_config/GMG new file mode 100644 index 0000000..75a6893 --- /dev/null +++ b/package_config/GMG @@ -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 index 0000000..0d8f7af --- /dev/null +++ b/package_config/PSQL @@ -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 index 0000000..e07891d --- /dev/null +++ b/scripts/GMG/00_create_local_user.sh @@ -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 index 0000000..e124317 --- /dev/null +++ b/scripts/GMG/00_create_psql_user.sh @@ -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 + + -- 2.25.1