Change username/group

This commit is contained in:
Bob Mottram 2014-04-05 13:33:05 +01:00
parent 71e8fc4838
commit 3c9205d833
1 changed files with 10 additions and 8 deletions

View File

@ -17,7 +17,7 @@ Copyright (C) 2014 Bob Mottram
Permission is granted to copy, distribute and/or modify this document under the terms of the [[https://gnu.org/licenses/fdl.html][GNU Free Documentation License]], Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
Source for this web site in [[https://en.wikipedia.org/wiki/Org-mode][Emacs org-mode]] format is available [[/beaglebone.txt][here]]. Comments or patches may be submitted via [[https://github.com/fuzzgun/freedombone][Github]].
Source for this web site in [[https://en.wikipedia.org/wiki/Org-mode][Emacs org-mode]] format is available [[/beaglebone.txt][here]]. Comments or patches may be submitted via [[https://github.com/bashrc/freedombone][Github]].
#+END_CENTER
* Introduction
@ -6195,10 +6195,10 @@ Install some dependencies.
apt-get install git-core python python-dev python-lxml python-imaging python-virtualenv python-gst0.10 libjpeg8-dev sqlite3 libapache2-mod-fcgid
#+END_SRC
Create a user, replacing /mymediagoblinsite/ with the domain name for your mediagoblin site.
Create a user, replacing /mymediagoblindomain/ with the domain name for your mediagoblin site.
#+BEGIN_SRC: bash
export HOSTNAME=mymediagoblinsite
export HOSTNAME=mymediagoblindomain
adduser mediagoblin
#+END_SRC
@ -6208,7 +6208,7 @@ Give the user a long random password.
mkdir -p /srv/$HOSTNAME
chown -hR mediagoblin:mediagoblin /srv/$HOSTNAME
su - mediagoblin
export HOSTNAME=mymediagoblinsite
export HOSTNAME=mymediagoblindomain
cd /srv/$HOSTNAME
git clone git://gitorious.org/mediagoblin/mediagoblin.git
cd mediagoblin
@ -6218,6 +6218,7 @@ virtualenv --system-site-packages .
./bin/python setup.py develop
./bin/easy_install flup
cp mediagoblin.ini mediagoblin_local.ini
cp paste.ini paste_local.ini
emacs mediagoblin_local.ini
#+END_SRC
@ -6225,6 +6226,7 @@ Change *email_sender_address* to your email address, then save and exit.
#+BEGIN_SRC: bash
./bin/gmg dbupdate
exit # to go back to the root user
emacs /etc/init.d/mediagoblin-paster
#+END_SRC
@ -6280,8 +6282,8 @@ MG_PASTER_PID_FILE=/var/run/mediagoblin/$DAEMON_NAME.pid
MG_PASTER_LOG_FILE=/var/log/mediagoblin/$DAEMON_NAME.log
set_up_directories() {
install -o $MG_USER -g users -d -m 755 /var/log/mediagoblin
install -o $MG_USER -g users -d -m 755 /var/run/mediagoblin
install -o $MG_USER -g mediagoblin -d -m 755 /var/log/mediagoblin
install -o $MG_USER -g mediagoblin -d -m 755 /var/run/mediagoblin
}
set_up_directories
@ -6421,8 +6423,8 @@ MG_CELERYD_PID_FILE=/var/run/mediagoblin/$DAEMON_NAME.pid
MG_CELERYD_LOG_FILE=/var/log/mediagoblin/$DAEMON_NAME.log
set_up_directories() {
install -o $MG_USER -g users -d -m 755 /var/log/mediagoblin
install -o $MG_USER -g users -d -m 755 /var/run/mediagoblin
install -o $MG_USER -g mediagoblin -d -m 755 /var/log/mediagoblin
install -o $MG_USER -g mediagoblin -d -m 755 /var/run/mediagoblin
}
set_up_directories