浏览代码

line lengths

Bob Mottram 8 年前
父节点
当前提交
ac32a66597
共有 1 个文件被更改,包括 10 次插入8 次删除
  1. 10
    8
      website/EN/devguide.html

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

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 16:59 -->
6
+<!-- 2016-10-12 Wed 17:02 -->
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-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
 <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>
364
     restore_database myappname
364
     restore_database myappname
365
 
365
 
366
     <span class="org-comment-delimiter"># </span><span class="org-comment">Restore some data from a directory</span>
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
     restore_directory_from_usb $<span class="org-variable-name">MYAPP_DATA_DIR</span> myappname
371
     restore_directory_from_usb $<span class="org-variable-name">MYAPP_DATA_DIR</span> myappname
371
     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
     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
     rm -rf $<span class="org-variable-name">temp_restore_dir</span>
373
     rm -rf $<span class="org-variable-name">temp_restore_dir</span>
433
                                80 ${<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>})
434
                                80 ${<span class="org-variable-name">MYAPPNAME_ONION_PORT</span>})
434
 
435
 
435
     <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">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
     <span class="org-comment-delimiter"># </span><span class="org-comment">Mark the app as having installed successfully</span>
440
     <span class="org-comment-delimiter"># </span><span class="org-comment">Mark the app as having installed successfully</span>
439
     <span class="org-comment-delimiter"># </span><span class="org-comment">If this variable isn't set then it will be assumed that</span>
441
     <span class="org-comment-delimiter"># </span><span class="org-comment">If this variable isn't set then it will be assumed that</span>