Skip to content

Commit 275ad51

Browse files
author
jelleherold
committed
updated documentation
git-svn-id: http://easypost.googlecode.com/svn/trunk@4 4c8e1b94-4054-0410-9f97-17490ffc63a7
1 parent f0db2ed commit 275ad51

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

docs/easypost.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,18 +309,22 @@ <h1><a id="requirements" name="requirements">Requirements</a></h1>
309309
</div>
310310
<div class="section">
311311
<h1><a id="setup" name="setup">Setup</a></h1>
312+
<p>We shall be needing a password for the database user, so we generate a 12
313+
character long password consisting of numeric, capital and lowercase characters.</p>
314+
<p><tt class="docutils literal"><span class="pre">apg</span> <span class="pre">-M</span> <span class="pre">NCL</span> <span class="pre">-n1</span> <span class="pre">-m12</span> <span class="pre">-x12</span></tt></p>
312315
<div class="section">
313316
<h2><a id="postgresql" name="postgresql">Postgresql</a></h2>
314317
<p>First, postgresql setup. We create a password protected user
315318
with limited capabilities, called <tt class="docutils literal"><span class="pre">easypost</span></tt>. The password
316319
is encrypted using MD5 (see <tt class="docutils literal"><span class="pre">man</span> <span class="pre">createuser</span></tt> for details).
317-
Also, create a database called <tt class="docutils literal"><span class="pre">easypost</span></tt> for this user.:</p>
320+
Also, we create a database called <tt class="docutils literal"><span class="pre">easypost</span></tt> for this user.:</p>
318321
<pre class="literal-block">
319322
sudo -u postgres bash
320323
createuser -DRESP easypost
321324
createdb -O easypost easypost
322325
exit
323326
</pre>
327+
<p>(you enter the password we generated earlier)</p>
324328
<p>We are running postfix and postgresql on the same system. So
325329
we first configure postgres to accept connections from user.
326330
Add the following line to
@@ -330,8 +334,9 @@ <h2><a id="postgresql" name="postgresql">Postgresql</a></h2>
330334
host easypost easypost 127.0.0.1/32 md5
331335
</pre>
332336
<p>(Make sure this is above the line that says <tt class="docutils literal"><span class="pre">local</span> <span class="pre">all</span> <span class="pre">all</span>
333-
<span class="pre">ident</span> <span class="pre">sameuser</span></tt>. Also, the second line is nog needed if there
337+
<span class="pre">ident</span> <span class="pre">sameuser</span></tt>. Also, the second line is not needed if there
334338
is a line like <tt class="docutils literal"><span class="pre">host</span> <span class="pre">all</span> <span class="pre">all</span> <span class="pre">127.0.0.1/32</span> <span class="pre">md5</span></tt>.)</p>
339+
<p>Now restart postgresql with <tt class="docutils literal"><span class="pre">/etc/init.d/postgresql-8.3</span> <span class="pre">restart</span></tt>.</p>
335340
<p>That's it. You can test this (as any user) with::</p>
336341
<pre class="literal-block">
337342
psql easypost -U easypost
@@ -392,6 +397,13 @@ <h2><a id="listing-database-contents" name="listing-database-contents">Listing d
392397
<p><tt class="docutils literal"><span class="pre">easypost</span> <span class="pre">list</span> <span class="pre">domains</span> <span class="pre">[--user</span> <span class="pre">&lt;username&gt;]</span></tt></p>
393398
</div>
394399
</div>
400+
</div>
401+
<div class="footer">
402+
<hr class="footer" />
403+
<a class="reference" href="easypost.rst">View document source</a>.
404+
Generated on: 2008-10-08 12:02 UTC.
405+
Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
406+
395407
</div>
396408
</body>
397409
</html>

docs/easypost.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,27 @@ This is intended for Debian/Ubuntu based systems. Minimum requirements:
2121
Setup
2222
=====
2323

24+
We shall be needing a password for the database user, so we generate a 12
25+
character long password consisting of numeric, capital and lowercase characters.
26+
27+
``apg -M NCL -n1 -m12 -x12``
28+
29+
2430
Postgresql
2531
----------
2632

2733
First, postgresql setup. We create a password protected user
2834
with limited capabilities, called ``easypost``. The password
2935
is encrypted using MD5 (see ``man createuser`` for details).
30-
Also, create a database called ``easypost`` for this user.::
36+
Also, we create a database called ``easypost`` for this user.::
3137

3238
sudo -u postgres bash
3339
createuser -DRESP easypost
3440
createdb -O easypost easypost
3541
exit
3642

43+
(you enter the password we generated earlier)
44+
3745
We are running postfix and postgresql on the same system. So
3846
we first configure postgres to accept connections from user.
3947
Add the following line to
@@ -43,9 +51,11 @@ Add the following line to
4351
host easypost easypost 127.0.0.1/32 md5
4452

4553
(Make sure this is above the line that says ``local all all
46-
ident sameuser``. Also, the second line is nog needed if there
54+
ident sameuser``. Also, the second line is not needed if there
4755
is a line like ``host all all 127.0.0.1/32 md5``.)
4856

57+
Now restart postgresql with ``/etc/init.d/postgresql-8.3 restart``.
58+
4959
That's it. You can test this (as any user) with:::
5060

5161
psql easypost -U easypost

0 commit comments

Comments
 (0)