From: Lisa Marie Maginnis Date: Fri, 26 Feb 2016 22:54:26 +0000 (-0500) Subject: inital gmg work X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=788639b3a176ed7d58a616354898e567613ddaf4;p=fai-configs.git inital gmg work --- 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 + +