line lengths

This commit is contained in:
Bob Mottram 2016-10-12 17:02:33 +01:00
parent c17e6eec10
commit ac32a66597
1 changed files with 10 additions and 8 deletions

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 16:59 -->
<!-- 2016-10-12 Wed 17:02 -->
<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-orgacfcf5c" class="outline-2">
<h2 id="orgacfcf5c">Adding extra apps</h2>
<div class="outline-text-2" id="text-orgacfcf5c">
<div id="outline-container-orgb897711" class="outline-2">
<h2 id="orgb897711">Adding extra apps</h2>
<div class="outline-text-2" id="text-orgb897711">
<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>
@ -364,9 +364,10 @@ An example template for an app script is shown below. Copy this and add whatever
restore_database myappname
<span class="org-comment-delimiter"># </span><span class="org-comment">Restore some data from a directory</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Note that we don't restore directly but to a temporary directory</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">and then copy the files. This ensures that if there is a restore</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">failure you don't end up with half-copied or corrupted files</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Note that we don't restore directly but to a temporary</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">directory and then copy the files. This ensures that if</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">there is a restore failure you don't end up with</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">half-copied or corrupted files</span>
restore_directory_from_usb $<span class="org-variable-name">MYAPP_DATA_DIR</span> myappname
cp -r $<span class="org-variable-name">temp_restore_dir</span>/$<span class="org-variable-name">MYAPP_DATA_DIR</span> $<span class="org-variable-name">MYAPP_DATA_DIR</span>
rm -rf $<span class="org-variable-name">temp_restore_dir</span>
@ -433,7 +434,8 @@ An example template for an app script is shown below. Copy this and add whatever
80 ${<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>})
<span class="org-comment-delimiter"># </span><span class="org-comment">Do any other configuration</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Here you might use $ONION_ONLY or $SOME_IMPORTANT_CONFIG_VARIABLE</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Here you might use $ONION_ONLY or</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">$SOME_IMPORTANT_CONFIG_VARIABLE</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Mark the app as having installed successfully</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If this variable isn't set then it will be assumed that</span>