瀏覽代碼

line lengths

Bob Mottram 8 年之前
父節點
當前提交
ac32a66597
共有 1 個檔案被更改,包括 10 行新增8 行删除
  1. 10
    8
      website/EN/devguide.html

+ 10
- 8
website/EN/devguide.html 查看文件

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2016-10-12 Wed 16:59 -->
6
+<!-- 2016-10-12 Wed 17:02 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title></title>
@@ -245,9 +245,9 @@ for the JavaScript code in this tag.
245 245
 
246 246
 <center><h1>Developers Guide</h1></center>
247 247
 
248
-<div id="outline-container-orgacfcf5c" class="outline-2">
249
-<h2 id="orgacfcf5c">Adding extra apps</h2>
250
-<div class="outline-text-2" id="text-orgacfcf5c">
248
+<div id="outline-container-orgb897711" class="outline-2">
249
+<h2 id="orgb897711">Adding extra apps</h2>
250
+<div class="outline-text-2" id="text-orgb897711">
251 251
 <p>
252 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 253
 </p>
@@ -364,9 +364,10 @@ An example template for an app script is shown below. Copy this and add whatever
364 364
     restore_database myappname
365 365
 
366 366
     <span class="org-comment-delimiter"># </span><span class="org-comment">Restore some data from a directory</span>
367
-    <span class="org-comment-delimiter"># </span><span class="org-comment">Note that we don't restore directly but to a temporary directory</span>
368
-    <span class="org-comment-delimiter"># </span><span class="org-comment">and then copy the files. This ensures that if there is a restore</span>
369
-    <span class="org-comment-delimiter"># </span><span class="org-comment">failure you don't end up with half-copied or corrupted files</span>
367
+    <span class="org-comment-delimiter"># </span><span class="org-comment">Note that we don't restore directly but to a temporary</span>
368
+    <span class="org-comment-delimiter"># </span><span class="org-comment">directory and then copy the files. This ensures that if</span>
369
+    <span class="org-comment-delimiter"># </span><span class="org-comment">there is a restore failure you don't end up with</span>
370
+    <span class="org-comment-delimiter"># </span><span class="org-comment">half-copied or corrupted files</span>
370 371
     restore_directory_from_usb $<span class="org-variable-name">MYAPP_DATA_DIR</span> myappname
371 372
     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>
372 373
     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
433 434
                                80 ${<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>})
434 435
 
435 436
     <span class="org-comment-delimiter"># </span><span class="org-comment">Do any other configuration</span>
436
-    <span class="org-comment-delimiter"># </span><span class="org-comment">Here you might use $ONION_ONLY or $SOME_IMPORTANT_CONFIG_VARIABLE</span>
437
+    <span class="org-comment-delimiter"># </span><span class="org-comment">Here you might use $ONION_ONLY or</span>
438
+    <span class="org-comment-delimiter"># </span><span class="org-comment">$SOME_IMPORTANT_CONFIG_VARIABLE</span>
437 439
 
438 440
     <span class="org-comment-delimiter"># </span><span class="org-comment">Mark the app as having installed successfully</span>
439 441
     <span class="org-comment-delimiter"># </span><span class="org-comment">If this variable isn't set then it will be assumed that</span>