This commit is contained in:
Bob Mottram 2016-10-12 17:14:30 +01:00
parent d50693a909
commit f88d38c6aa
2 changed files with 8 additions and 6 deletions

View File

@ -62,9 +62,10 @@ MY_FUNKY_AVATAR=https://some-domain-or-other/fro.png
MYAPPNAME_ONION_PORT=[port number]
MYAPPNAME_DB_PASSWORD=
# A directory where the data exists
# A directory where the data for this app exists
MYAPP_DATA_DIR=/var/lib/somedirectory
# List of configuration variables used by the app
myappname_variables=(ONION_ONLY
MY_USERNAME
SOME_IMPORTANT_CONFIG_VARIABLE

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2016-10-12 Wed 17:12 -->
<!-- 2016-10-12 Wed 17:14 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
@ -245,9 +245,9 @@ for the JavaScript code in this tag.
<center><h1>Developers Guide</h1></center>
<div id="outline-container-orgcec4979" class="outline-2">
<h2 id="orgcec4979">Adding extra apps</h2>
<div class="outline-text-2" id="text-orgcec4979">
<div id="outline-container-orgb179e3c" class="outline-2">
<h2 id="orgb179e3c">Adding extra apps</h2>
<div class="outline-text-2" id="text-orgb179e3c">
<p>
Suppose you have some internet application which you want to add to the system. To do this you need to create an app script which tells the system how to install/remove and also backup/restore. On an installed system the app scripts go into the directory:
</p>
@ -305,9 +305,10 @@ An example template for an app script is shown below. Copy this and add whatever
<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>=[port number]
<span class="org-variable-name">MYAPPNAME_DB_PASSWORD</span>=
<span class="org-comment-delimiter"># </span><span class="org-comment">A directory where the data exists</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">A directory where the data for this app exists</span>
<span class="org-variable-name">MYAPP_DATA_DIR</span>=/var/lib/somedirectory
<span class="org-comment-delimiter"># </span><span class="org-comment">List of configuration variables used by the app</span>
<span class="org-variable-name">myappname_variables</span>=(ONION_ONLY
MY_USERNAME
SOME_IMPORTANT_CONFIG_VARIABLE