liquid_feedback_frontend
changeset 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 |
files | INSTALL.html INSTALL.mkd |
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}" > "${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>&1 | logger -t "lf_updated"' 1.43 - su - www-data -c 'nice /opt/liquid_feedback_core/lf_update_issue_order dbname=liquid_feedback 2>&1 | logger -t "lf_updated"' 1.44 - su - www-data -c 'nice /opt/liquid_feedback_core/lf_update_suggestion_order dbname=liquid_feedback 2>&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>&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>&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>&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>
2.1 --- a/INSTALL.mkd Sun Mar 29 20:31:32 2015 +0200 2.2 +++ b/INSTALL.mkd Sun Apr 12 15:11:34 2015 +0200 2.3 @@ -20,7 +20,7 @@ 2.4 * pmake or bmake (only for WebMCP 2.x with Moonbridge) 2.5 * imagemagick 2.6 * exim4 2.7 - * markdown2 (install with Python's pip) 2.8 + * markdown2 (``apt-get install python-pip; pip install markdown2``) 2.9 2.10 If you're using any other Linux distribution or BSD system, install the 2.11 necessary software components accordingly. 2.12 @@ -34,14 +34,8 @@ 2.13 executing PostgreSQL's shell command `createuser` as database superuser 2.14 (usually `pgsql`, or `postgres` for Debian installations): 2.15 2.16 - su - postgres 2.17 - createuser 2.18 - 2.19 - Enter name of role to add: www-data 2.20 - Shall the new role be a superuser? (y/n) n 2.21 - Shall the new role be allowed to create databases? (y/n) y 2.22 - Shall the new role be allowed to create more new roles? (y/n) n 2.23 - 2.24 + su postgres -s $SHELL 2.25 + createuser --no-superuser --createdb --no-createrole www-data 2.26 exit 2.27 2.28 2.29 @@ -60,7 +54,7 @@ 2.30 make 2.31 mkdir /opt/liquid_feedback_core 2.32 cp core.sql lf_update lf_update_issue_order /opt/liquid_feedback_core 2.33 - su - www-data 2.34 + su www-data -s $SHELL 2.35 cd /opt/liquid_feedback_core 2.36 createdb liquid_feedback 2.37 createlang plpgsql liquid_feedback # command may be omitted, depending on PostgreSQL version 2.38 @@ -226,9 +220,9 @@ 2.39 echo "${PID}" > "${PIDFILE}" 2.40 2.41 while true; do 2.42 - su - www-data -c 'nice /opt/liquid_feedback_core/lf_update dbname=liquid_feedback 2>&1 | logger -t "lf_updated"' 2.43 - su - www-data -c 'nice /opt/liquid_feedback_core/lf_update_issue_order dbname=liquid_feedback 2>&1 | logger -t "lf_updated"' 2.44 - su - www-data -c 'nice /opt/liquid_feedback_core/lf_update_suggestion_order dbname=liquid_feedback 2>&1 | logger -t "lf_updated"' 2.45 + su - www-data -s /bin/sh -c 'nice /opt/liquid_feedback_core/lf_update dbname=liquid_feedback 2>&1 | logger -t "lf_updated"' 2.46 + su - www-data -s /bin/sh -c 'nice /opt/liquid_feedback_core/lf_update_issue_order dbname=liquid_feedback 2>&1 | logger -t "lf_updated"' 2.47 + su - www-data -s /bin/sh -c 'nice /opt/liquid_feedback_core/lf_update_suggestion_order dbname=liquid_feedback 2>&1 | logger -t "lf_updated"' 2.48 sleep 5 2.49 done 2.50 2.51 @@ -246,7 +240,7 @@ 2.52 `lf_update_suggestion_order`, the following commands should be executed in 2.53 background: 2.54 2.55 - su - www-data 2.56 + su www-data -s $SHELL 2.57 cd /opt/liquid_feedback_frontend/ 2.58 echo "Event:send_notifications_loop()" | ../webmcp/bin/webmcp_shell myconfig 2.59