|
|
|
|
3
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
4
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
5
|
<head>
|
5
|
<head>
|
6
|
-<!-- 2016-10-12 Wed 17:12 -->
|
|
|
|
|
6
|
+<!-- 2016-10-12 Wed 17:14 -->
|
7
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
7
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
8
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
8
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
9
|
<title></title>
|
9
|
<title></title>
|
|
|
|
|
245
|
|
245
|
|
246
|
<center><h1>Developers Guide</h1></center>
|
246
|
<center><h1>Developers Guide</h1></center>
|
247
|
|
247
|
|
248
|
-<div id="outline-container-orgcec4979" class="outline-2">
|
|
|
249
|
-<h2 id="orgcec4979">Adding extra apps</h2>
|
|
|
250
|
-<div class="outline-text-2" id="text-orgcec4979">
|
|
|
|
|
248
|
+<div id="outline-container-orgb179e3c" class="outline-2">
|
|
|
249
|
+<h2 id="orgb179e3c">Adding extra apps</h2>
|
|
|
250
|
+<div class="outline-text-2" id="text-orgb179e3c">
|
251
|
<p>
|
251
|
<p>
|
252
|
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:
|
252
|
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:
|
253
|
</p>
|
253
|
</p>
|
|
|
|
|
305
|
<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>=[port number]
|
305
|
<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>=[port number]
|
306
|
<span class="org-variable-name">MYAPPNAME_DB_PASSWORD</span>=
|
306
|
<span class="org-variable-name">MYAPPNAME_DB_PASSWORD</span>=
|
307
|
|
307
|
|
308
|
-<span class="org-comment-delimiter"># </span><span class="org-comment">A directory where the data exists</span>
|
|
|
|
|
308
|
+<span class="org-comment-delimiter"># </span><span class="org-comment">A directory where the data for this app exists</span>
|
309
|
<span class="org-variable-name">MYAPP_DATA_DIR</span>=/var/lib/somedirectory
|
309
|
<span class="org-variable-name">MYAPP_DATA_DIR</span>=/var/lib/somedirectory
|
310
|
|
310
|
|
|
|
311
|
+<span class="org-comment-delimiter"># </span><span class="org-comment">List of configuration variables used by the app</span>
|
311
|
<span class="org-variable-name">myappname_variables</span>=(ONION_ONLY
|
312
|
<span class="org-variable-name">myappname_variables</span>=(ONION_ONLY
|
312
|
MY_USERNAME
|
313
|
MY_USERNAME
|
313
|
SOME_IMPORTANT_CONFIG_VARIABLE
|
314
|
SOME_IMPORTANT_CONFIG_VARIABLE
|