liquid_feedback_frontend

diff INSTALL.html @ 1191:8259fb540324

Improved installation instructions (mention python-pip package; deal with /usr/sbin/nologin on Ubuntu)
author jbe
date Sun Apr 12 15:11:34 2015 +0200 (2015-04-12)
parents 9700ce0d5541
children bf158c59f827
line diff
     1.1 --- a/INSTALL.html	Sun Mar 29 20:31:32 2015 +0200
     1.2 +++ b/INSTALL.html	Sun Apr 12 15:11:34 2015 +0200
     1.3 @@ -23,7 +23,7 @@
     1.4  <li>pmake or bmake (only for WebMCP 2.x with Moonbridge)</li>
     1.5  <li>imagemagick</li>
     1.6  <li>exim4</li>
     1.7 -<li>markdown2 (install with Python's pip)</li>
     1.8 +<li>markdown2 (<code>apt-get install python-pip; pip install markdown2</code>)</li>
     1.9  </ul>
    1.10  
    1.11  <p>If you're using any other Linux distribution or BSD system, install the
    1.12 @@ -36,14 +36,8 @@
    1.13  executing PostgreSQL's shell command <code>createuser</code> as database superuser
    1.14  (usually <code>pgsql</code>, or <code>postgres</code> for Debian installations):</p>
    1.15  
    1.16 -<pre><code>su - postgres
    1.17 -createuser
    1.18 -
    1.19 -Enter name of role to add: www-data
    1.20 -Shall the new role be a superuser? (y/n) n
    1.21 -Shall the new role be allowed to create databases? (y/n) y
    1.22 -Shall the new role be allowed to create more new roles? (y/n) n
    1.23 -
    1.24 +<pre><code>su postgres -s $SHELL
    1.25 +createuser --no-superuser --createdb --no-createrole www-data
    1.26  exit
    1.27  </code></pre>
    1.28  
    1.29 @@ -61,7 +55,7 @@
    1.30  make
    1.31  mkdir /opt/liquid_feedback_core
    1.32  cp core.sql lf_update lf_update_issue_order /opt/liquid_feedback_core
    1.33 -su - www-data
    1.34 +su www-data -s $SHELL
    1.35  cd /opt/liquid_feedback_core
    1.36  createdb liquid_feedback
    1.37  createlang plpgsql liquid_feedback  # command may be omitted, depending on PostgreSQL version
    1.38 @@ -226,9 +220,9 @@
    1.39  echo "${PID}" &gt; "${PIDFILE}"
    1.40  
    1.41  while true; do
    1.42 -  su - www-data -c 'nice /opt/liquid_feedback_core/lf_update dbname=liquid_feedback 2&gt;&amp;1 | logger -t "lf_updated"'
    1.43 -  su - www-data -c 'nice /opt/liquid_feedback_core/lf_update_issue_order dbname=liquid_feedback 2&gt;&amp;1 | logger -t "lf_updated"'
    1.44 -  su - www-data -c 'nice /opt/liquid_feedback_core/lf_update_suggestion_order dbname=liquid_feedback 2&gt;&amp;1 | logger -t "lf_updated"'
    1.45 +  su - www-data -s /bin/sh -c 'nice /opt/liquid_feedback_core/lf_update dbname=liquid_feedback 2&gt;&amp;1 | logger -t "lf_updated"'
    1.46 +  su - www-data -s /bin/sh -c 'nice /opt/liquid_feedback_core/lf_update_issue_order dbname=liquid_feedback 2&gt;&amp;1 | logger -t "lf_updated"'
    1.47 +  su - www-data -s /bin/sh -c 'nice /opt/liquid_feedback_core/lf_update_suggestion_order dbname=liquid_feedback 2&gt;&amp;1 | logger -t "lf_updated"'
    1.48    sleep 5
    1.49  done
    1.50  </code></pre>
    1.51 @@ -246,7 +240,7 @@
    1.52  <code>lf_update_suggestion_order</code>, the following commands should be executed in
    1.53  background:</p>
    1.54  
    1.55 -<pre><code>su - www-data
    1.56 +<pre><code>su www-data -s $SHELL
    1.57  cd /opt/liquid_feedback_frontend/
    1.58  echo "Event:send_notifications_loop()" | ../webmcp/bin/webmcp_shell myconfig
    1.59  </code></pre>

Impressum / About Us