la_vecchia_wiki_moinmoin/Deploy_OpenPod_su_zaphoda.html

301 lines
66 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Deploy OpenPod su zaphoda</title>
<link rel="stylesheet" type="text/css" media="all" charset="utf-8" href="acaro/css/common.css">
<link rel="stylesheet" type="text/css" media="screen" charset="utf-8" href="acaro/css/screen.css">
<link rel="stylesheet" type="text/css" media="print" charset="utf-8" href="acaro/css/print.css">
<style type="text/css">
ul.pagetitle{
display: inline;
margin: 0;
padding: 0;
font-size: 1.5em;
}
li.pagetitle{
display: inline;
margin: 0;
}
td.noborder {
border: 0;
}
</style>
</head>
<body>
<table>
<tr>
<td class="noborder">
<img src="logo.png" width="85" height="85">
</td>
<td class="noborder">
<ul class="pagetitle">
<li class="pagetitle"><a class="backlink">Deploy OpenPod su zaphoda</a>
</ul>
<br><br>
[<a href="FrontPage.html">FrontPage</a>]
</td>
</tr>
</table>
<hr>
<div id="page">
<div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span>
<span class="anchor" id="line-1-6"></span><p class="line867">
<h2 id="Build">Build</h2>
<span class="anchor" id="line-2-1"></span><p class="line867"><span class="anchor" id="line-3-1"></span><span class="anchor" id="line-4-1"></span><pre><span class="anchor" id="line-1"></span> docker build -t offtopic/open-pod:&lt;TAG&gt; .</pre><span class="anchor" id="line-5"></span><span class="anchor" id="line-6"></span><span class="anchor" id="line-7"></span><p class="line867">
<h2 id="Deploy_su_zaphoda">Deploy su zaphoda</h2>
<span class="anchor" id="line-8"></span><span class="anchor" id="line-9"></span><p class="line862">O accediamo come root, o l'utente con cui fate ssh deve essere nel gruppo <tt>docker</tt>: <span class="anchor" id="line-10"></span><span class="anchor" id="line-11"></span><p class="line867"><span class="anchor" id="line-12"></span><span class="anchor" id="line-13"></span><pre><span class="anchor" id="line-1-1"></span> docker save offtopic/open-pod:&lt;TAG&gt; | ssh root@abbiamoundominio.org docker load</pre><span class="anchor" id="line-14"></span><span class="anchor" id="line-15"></span><p class="line867">
<h3 id="Modificare_la_configurazione_di_nginx">Modificare la configurazione di nginx</h3>
<span class="anchor" id="line-16"></span><span class="anchor" id="line-17"></span><p class="line862">Creare un certificato per <tt>openpod.abbiamoundominio.org</tt>. Per farlo ho spento <tt>nginx</tt> con <span class="anchor" id="line-18"></span><span class="anchor" id="line-19"></span><p class="line867"><span class="anchor" id="line-20"></span><span class="anchor" id="line-21"></span><pre><span class="anchor" id="line-1-2"></span>systemctl stop nginx</pre><span class="anchor" id="line-22"></span><span class="anchor" id="line-23"></span><p class="line874">e poi ho ottenuto il nuovo certificato <span class="anchor" id="line-24"></span><span class="anchor" id="line-25"></span><p class="line867"><span class="anchor" id="line-26"></span><span class="anchor" id="line-27"></span><pre><span class="anchor" id="line-1-3"></span>certbot certonly --standalone -d openpod.abbiamoundominio.org</pre><span class="anchor" id="line-28"></span><span class="anchor" id="line-29"></span><p class="line862">e riacceso <tt>nginx</tt> <span class="anchor" id="line-30"></span><span class="anchor" id="line-31"></span><p class="line867"><span class="anchor" id="line-32"></span><span class="anchor" id="line-33"></span><pre><span class="anchor" id="line-1-4"></span>systemctl start nginx</pre><span class="anchor" id="line-34"></span><span class="anchor" id="line-35"></span><p class="line862">Poi ho aggiunto il la seguente configurazione in <tt>/etc/nginx/sites-available/openpod.abbiamoundominio.org.conf</tt> <span class="anchor" id="line-36"></span><span class="anchor" id="line-37"></span><p class="line867"><span class="anchor" id="line-38"></span><span class="anchor" id="line-39"></span><span class="anchor" id="line-40"></span><span class="anchor" id="line-41"></span><span class="anchor" id="line-42"></span><span class="anchor" id="line-43"></span><span class="anchor" id="line-44"></span><span class="anchor" id="line-45"></span><span class="anchor" id="line-46"></span><span class="anchor" id="line-47"></span><span class="anchor" id="line-48"></span><span class="anchor" id="line-49"></span><span class="anchor" id="line-50"></span><span class="anchor" id="line-51"></span><span class="anchor" id="line-52"></span><span class="anchor" id="line-53"></span><span class="anchor" id="line-54"></span><span class="anchor" id="line-55"></span><span class="anchor" id="line-56"></span><span class="anchor" id="line-57"></span><span class="anchor" id="line-58"></span><span class="anchor" id="line-59"></span><span class="anchor" id="line-60"></span><span class="anchor" id="line-61"></span><span class="anchor" id="line-62"></span><span class="anchor" id="line-63"></span><span class="anchor" id="line-64"></span><span class="anchor" id="line-65"></span><span class="anchor" id="line-66"></span><span class="anchor" id="line-67"></span><span class="anchor" id="line-68"></span><span class="anchor" id="line-69"></span><span class="anchor" id="line-70"></span><span class="anchor" id="line-71"></span><span class="anchor" id="line-72"></span><span class="anchor" id="line-73"></span><span class="anchor" id="line-74"></span><span class="anchor" id="line-75"></span><span class="anchor" id="line-76"></span><span class="anchor" id="line-77"></span><span class="anchor" id="line-78"></span><span class="anchor" id="line-79"></span><span class="anchor" id="line-80"></span><span class="anchor" id="line-81"></span><span class="anchor" id="line-82"></span><span class="anchor" id="line-83"></span><span class="anchor" id="line-84"></span><span class="anchor" id="line-1-7"></span><div class="highlight nginx"><div class="codearea" dir="ltr" lang="en">
<script type="text/javascript">
function isnumbered(obj) {
return obj.childNodes.length && obj.firstChild.childNodes.length && obj.firstChild.firstChild.className == 'LineNumber';
}
function nformat(num,chrs,add) {
var nlen = Math.max(0,chrs-(''+num).length), res = '';
while (nlen>0) { res += ' '; nlen-- }
return res+num+add;
}
function addnumber(did, nstart, nstep) {
var c = document.getElementById(did), l = c.firstChild, n = 1;
if (!isnumbered(c)) {
if (typeof nstart == 'undefined') nstart = 1;
if (typeof nstep == 'undefined') nstep = 1;
var n = nstart;
while (l != null) {
if (l.tagName == 'SPAN') {
var s = document.createElement('SPAN');
var a = document.createElement('A');
s.className = 'LineNumber';
a.appendChild(document.createTextNode(nformat(n,4,'')));
a.href = '#' + did + '_' + n;
s.appendChild(a);
s.appendChild(document.createTextNode(' '));
n += nstep;
if (l.childNodes.length) {
l.insertBefore(s, l.firstChild);
}
else {
l.appendChild(s);
}
}
l = l.nextSibling;
}
}
return false;
}
function remnumber(did) {
var c = document.getElementById(did), l = c.firstChild;
if (isnumbered(c)) {
while (l != null) {
if (l.tagName == 'SPAN' && l.firstChild.className == 'LineNumber') l.removeChild(l.firstChild);
l = l.nextSibling;
}
}
return false;
}
function togglenumber(did, nstart, nstep) {
var c = document.getElementById(did);
if (isnumbered(c)) {
remnumber(did);
} else {
addnumber(did,nstart,nstep);
}
return false;
}
</script>
<script type="text/javascript">
document.write('<a href="#" onclick="return togglenumber(\'CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1\', 1, 1);" \
class="codenumbers">Toggle line numbers<\/a>');
</script>
<pre dir="ltr" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1" lang="en"><span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_1"> 1</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_1"></span><span class="anchor" id="line-1-8"></span><span class="ResWord">server</span> {</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_2"> 2</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_2"></span><span class="anchor" id="line-2-2"></span> <span class="ResWord">listen</span> <span class="Number">80</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_3"> 3</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_3"></span><span class="anchor" id="line-3-2"></span> <span class="ResWord">server_name</span> <span class="String">openpod.abbiamoundominio.org</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_4"> 4</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_4"></span><span class="anchor" id="line-4-2"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_5"> 5</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_5"></span><span class="anchor" id="line-5-1"></span> <span class="ResWord">access_log</span> <span class="String">/var/log/nginx/openpod.abbiamoundominio.org-access.log</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_6"> 6</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_6"></span><span class="anchor" id="line-6-1"></span> <span class="ResWord">error_log</span> <span class="String">/var/log/nginx/openpod.abbiamoundominio.org-error.log</span> <span class="String">error</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_7"> 7</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_7"></span><span class="anchor" id="line-7-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_8"> 8</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_8"></span><span class="anchor" id="line-8-1"></span> <span class="ResWord">root</span> <span class="String">/var/www/openpod.abbiamoundominio.org</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_9"> 9</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_9"></span><span class="anchor" id="line-9-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_10"> 10</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_10"></span><span class="anchor" id="line-10-1"></span> <span class="ResWord">location</span> <span class="String">/</span> {</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_11"> 11</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_11"></span><span class="anchor" id="line-11-1"></span> <span class="ResWord">return</span> <span class="Number">301</span> <span class="String">https://</span><span class="ID">$server_name$request_uri</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_12"> 12</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_12"></span><span class="anchor" id="line-12-1"></span> }</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_13"> 13</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_13"></span><span class="anchor" id="line-13-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_14"> 14</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_14"></span><span class="anchor" id="line-14-1"></span> <span class="ResWord">include</span> <span class="String">common/robots</span><span class="String">.conf</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_15"> 15</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_15"></span><span class="anchor" id="line-15-1"></span> <span class="ResWord">include</span> <span class="String">common/letsencrypt</span><span class="String">.conf</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_16"> 16</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_16"></span><span class="anchor" id="line-16-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_17"> 17</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_17"></span><span class="anchor" id="line-17-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_18"> 18</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_18"></span><span class="anchor" id="line-18-1"></span><span class="ResWord">server</span> {</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_19"> 19</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_19"></span><span class="anchor" id="line-19-1"></span> <span class="ResWord">listen</span> <span class="Number">443</span> <span class="String">ssl</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_20"> 20</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_20"></span><span class="anchor" id="line-20-1"></span> <span class="ResWord">server_name</span> <span class="String">openpod.abbiamoundominio.org</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_21"> 21</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_21"></span><span class="anchor" id="line-21-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_22"> 22</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_22"></span><span class="anchor" id="line-22-1"></span> <span class="ResWord">access_log</span> <span class="String">/var/log/nginx/openpod.abbiamoundominio.org-access.log</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_23"> 23</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_23"></span><span class="anchor" id="line-23-1"></span> <span class="ResWord">error_log</span> <span class="String">/var/log/nginx/openpod.abbiamoundominio.org-error.log</span> <span class="String">error</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_24"> 24</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_24"></span><span class="anchor" id="line-24-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_25"> 25</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_25"></span><span class="anchor" id="line-25-1"></span> <span class="ResWord">error_page</span> <span class="Number">404</span> <span class="String">/404.html</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_26"> 26</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_26"></span><span class="anchor" id="line-26-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_27"> 27</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_27"></span><span class="anchor" id="line-27-1"></span> <span class="ResWord">include</span> <span class="String">common/ssl</span><span class="String">.conf</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_28"> 28</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_28"></span><span class="anchor" id="line-28-1"></span> <span class="ResWord">ssl_certificate</span> <span class="String">/etc/letsencrypt/live/openpod.abbiamoundominio.org/fullchain.pem</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_29"> 29</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_29"></span><span class="anchor" id="line-29-1"></span> <span class="ResWord">ssl_certificate_key</span> <span class="String">/etc/letsencrypt/live/openpod.abbiamoundominio.org/privkey.pem</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_30"> 30</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_30"></span><span class="anchor" id="line-30-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_31"> 31</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_31"></span><span class="anchor" id="line-31-1"></span> <span class="ResWord">location</span> <span class="String">/</span> {</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_32"> 32</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_32"></span><span class="anchor" id="line-32-1"></span> <span class="ResWord">proxy_pass</span> <span class="String">http://127.0.0.1:8080</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_33"> 33</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_33"></span><span class="anchor" id="line-33-1"></span> <span class="ResWord">proxy_set_header</span> <span class="String">Host</span> <span class="ID">$http_host</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_34"> 34</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_34"></span><span class="anchor" id="line-34-1"></span> <span class="ResWord">proxy_set_header</span> <span class="String">X-Forwarded-For</span> <span class="ID">$proxy_add_x_forwarded_for</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_35"> 35</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_35"></span><span class="anchor" id="line-35-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_36"> 36</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_36"></span><span class="anchor" id="line-36-1"></span> <span class="Comment"># WebSocket settings</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_37"> 37</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_37"></span><span class="anchor" id="line-37-1"></span><span class="Comment"></span> <span class="ResWord">proxy_http_version</span> <span class="Number">1</span><span class="String">.1</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_38"> 38</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_38"></span><span class="anchor" id="line-38-1"></span> <span class="ResWord">proxy_set_header</span> <span class="String">Upgrade</span> <span class="ID">$http_upgrade</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_39"> 39</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_39"></span><span class="anchor" id="line-39-1"></span> <span class="ResWord">proxy_set_header</span> <span class="String">Connection</span> <span class="String">"upgrade"</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_40"> 40</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_40"></span><span class="anchor" id="line-40-1"></span> <span class="ResWord">proxy_read_timeout</span> <span class="String">1h</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_41"> 41</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_41"></span><span class="anchor" id="line-41-1"></span> }</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_42"> 42</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_42"></span><span class="anchor" id="line-42-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_43"> 43</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_43"></span><span class="anchor" id="line-43-1"></span> <span class="ResWord">include</span> <span class="String">common/robots</span><span class="String">.conf</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_44"> 44</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_44"></span><span class="anchor" id="line-44-1"></span> <span class="ResWord">include</span> <span class="String">common/letsencrypt</span><span class="String">.conf</span>;</span>
<span class="line"><span class="LineNumber"><a href="#CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_45"> 45</a> </span><span class="LineAnchor" id="CA-f0e03c3afba20283aa8a7fcfcc52a06dd8ea14a1_45"></span><span class="anchor" id="line-45-1"></span>}</span>
</pre></div></div><span class="anchor" id="line-85"></span><span class="anchor" id="line-86"></span><p class="line867">
<h3 id="Accendere_il_container_docker">Accendere il container docker</h3>
<span class="anchor" id="line-87"></span><span class="anchor" id="line-88"></span><p class="line862">Con lo script messo in <tt>/usr/local/bin/openpod</tt> è possibile maneggiare il servizio: <span class="anchor" id="line-89"></span><span class="anchor" id="line-90"></span><p class="line867"><span class="anchor" id="line-91"></span><span class="anchor" id="line-92"></span><span class="anchor" id="line-93"></span><span class="anchor" id="line-94"></span><span class="anchor" id="line-95"></span><pre><span class="anchor" id="line-1-5"></span>openpod start &lt;versione&gt;
<span class="anchor" id="line-2"></span>openpod logs -f
<span class="anchor" id="line-3"></span>openpod stop
<span class="anchor" id="line-4"></span>openpod replace</pre><span class="anchor" id="line-96"></span><span class="anchor" id="line-97"></span><p class="line874">Lo script: <span class="anchor" id="line-98"></span><span class="anchor" id="line-99"></span><p class="line867"><span class="anchor" id="line-100"></span><span class="anchor" id="line-101"></span><span class="anchor" id="line-102"></span><span class="anchor" id="line-103"></span><span class="anchor" id="line-104"></span><span class="anchor" id="line-105"></span><span class="anchor" id="line-106"></span><span class="anchor" id="line-107"></span><span class="anchor" id="line-108"></span><span class="anchor" id="line-109"></span><span class="anchor" id="line-110"></span><span class="anchor" id="line-111"></span><span class="anchor" id="line-112"></span><span class="anchor" id="line-113"></span><span class="anchor" id="line-114"></span><span class="anchor" id="line-115"></span><span class="anchor" id="line-116"></span><span class="anchor" id="line-117"></span><span class="anchor" id="line-118"></span><span class="anchor" id="line-119"></span><span class="anchor" id="line-120"></span><span class="anchor" id="line-121"></span><span class="anchor" id="line-122"></span><span class="anchor" id="line-123"></span><span class="anchor" id="line-124"></span><span class="anchor" id="line-125"></span><span class="anchor" id="line-126"></span><span class="anchor" id="line-127"></span><span class="anchor" id="line-128"></span><span class="anchor" id="line-129"></span><span class="anchor" id="line-130"></span><span class="anchor" id="line-131"></span><span class="anchor" id="line-132"></span><span class="anchor" id="line-133"></span><span class="anchor" id="line-134"></span><span class="anchor" id="line-135"></span><span class="anchor" id="line-136"></span><span class="anchor" id="line-137"></span><span class="anchor" id="line-138"></span><span class="anchor" id="line-139"></span><span class="anchor" id="line-140"></span><span class="anchor" id="line-141"></span><span class="anchor" id="line-142"></span><span class="anchor" id="line-143"></span><span class="anchor" id="line-144"></span><span class="anchor" id="line-145"></span><span class="anchor" id="line-146"></span><span class="anchor" id="line-147"></span><span class="anchor" id="line-148"></span><span class="anchor" id="line-149"></span><span class="anchor" id="line-150"></span><span class="anchor" id="line-151"></span><span class="anchor" id="line-152"></span><span class="anchor" id="line-153"></span><span class="anchor" id="line-154"></span><span class="anchor" id="line-155"></span><span class="anchor" id="line-156"></span><span class="anchor" id="line-157"></span><span class="anchor" id="line-158"></span><span class="anchor" id="line-159"></span><span class="anchor" id="line-160"></span><span class="anchor" id="line-161"></span><span class="anchor" id="line-162"></span><span class="anchor" id="line-163"></span><span class="anchor" id="line-164"></span><span class="anchor" id="line-165"></span><span class="anchor" id="line-166"></span><span class="anchor" id="line-167"></span><span class="anchor" id="line-168"></span><span class="anchor" id="line-169"></span><span class="anchor" id="line-170"></span><span class="anchor" id="line-171"></span><span class="anchor" id="line-172"></span><span class="anchor" id="line-173"></span><span class="anchor" id="line-174"></span><span class="anchor" id="line-175"></span><span class="anchor" id="line-176"></span><span class="anchor" id="line-177"></span><span class="anchor" id="line-178"></span><span class="anchor" id="line-179"></span><span class="anchor" id="line-180"></span><span class="anchor" id="line-181"></span><span class="anchor" id="line-182"></span><span class="anchor" id="line-183"></span><span class="anchor" id="line-184"></span><span class="anchor" id="line-185"></span><span class="anchor" id="line-186"></span><span class="anchor" id="line-187"></span><span class="anchor" id="line-188"></span><span class="anchor" id="line-189"></span><span class="anchor" id="line-190"></span><span class="anchor" id="line-191"></span><span class="anchor" id="line-192"></span><span class="anchor" id="line-193"></span><span class="anchor" id="line-194"></span><span class="anchor" id="line-195"></span><span class="anchor" id="line-196"></span><span class="anchor" id="line-197"></span><span class="anchor" id="line-198"></span><span class="anchor" id="line-199"></span><span class="anchor" id="line-200"></span><span class="anchor" id="line-201"></span><span class="anchor" id="line-202"></span><span class="anchor" id="line-203"></span><span class="anchor" id="line-204"></span><span class="anchor" id="line-205"></span><span class="anchor" id="line-206"></span><span class="anchor" id="line-207"></span><span class="anchor" id="line-208"></span><span class="anchor" id="line-209"></span><span class="anchor" id="line-210"></span><span class="anchor" id="line-211"></span><span class="anchor" id="line-212"></span><span class="anchor" id="line-213"></span><span class="anchor" id="line-214"></span><span class="anchor" id="line-215"></span><span class="anchor" id="line-216"></span><span class="anchor" id="line-217"></span><span class="anchor" id="line-218"></span><span class="anchor" id="line-219"></span><span class="anchor" id="line-220"></span><span class="anchor" id="line-221"></span><span class="anchor" id="line-222"></span><span class="anchor" id="line-223"></span><span class="anchor" id="line-224"></span><span class="anchor" id="line-225"></span><span class="anchor" id="line-226"></span><span class="anchor" id="line-227"></span><span class="anchor" id="line-228"></span><span class="anchor" id="line-1-9"></span><div class="highlight bash"><div class="codearea" dir="ltr" lang="en">
<script type="text/javascript">
document.write('<a href="#" onclick="return togglenumber(\'CA-89bf626c1f95133bce1b160fd7fffc233b803abc\', 1, 1);" \
class="codenumbers">Toggle line numbers<\/a>');
</script>
<pre dir="ltr" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc" lang="en"><span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_1"> 1</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_1"></span><span class="anchor" id="line-1-10"></span><span class="Comment">#!/usr/bin/env bash</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_2"> 2</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_2"></span><span class="anchor" id="line-2-3"></span><span class="Comment"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_3"> 3</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_3"></span><span class="anchor" id="line-3-3"></span><span class="ResWord">function</span> help_fun() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_4"> 4</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_4"></span><span class="anchor" id="line-4-3"></span> <span class="ResWord">case</span> <span class="String">${</span><span class="ID">1</span><span class="String">}</span> in</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_5"> 5</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_5"></span><span class="anchor" id="line-5-2"></span> start)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_6"> 6</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_6"></span><span class="anchor" id="line-6-2"></span> help_start_service</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_7"> 7</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_7"></span><span class="anchor" id="line-7-2"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_8"> 8</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_8"></span><span class="anchor" id="line-8-2"></span> stop)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_9"> 9</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_9"></span><span class="anchor" id="line-9-2"></span> help_stop_service</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_10"> 10</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_10"></span><span class="anchor" id="line-10-2"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_11"> 11</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_11"></span><span class="anchor" id="line-11-2"></span> replace)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_12"> 12</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_12"></span><span class="anchor" id="line-12-2"></span> help_replace_service</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_13"> 13</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_13"></span><span class="anchor" id="line-13-2"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_14"> 14</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_14"></span><span class="anchor" id="line-14-2"></span> logs)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_15"> 15</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_15"></span><span class="anchor" id="line-15-2"></span> help_logs</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_16"> 16</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_16"></span><span class="anchor" id="line-16-2"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_17"> 17</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_17"></span><span class="anchor" id="line-17-2"></span> *)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_18"> 18</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_18"></span><span class="anchor" id="line-18-2"></span> help_general</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_19"> 19</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_19"></span><span class="anchor" id="line-19-2"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_20"> 20</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_20"></span><span class="anchor" id="line-20-2"></span> <span class="ResWord">esac</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_21"> 21</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_21"></span><span class="anchor" id="line-21-2"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_22"> 22</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_22"></span><span class="anchor" id="line-22-2"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_23"> 23</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_23"></span><span class="anchor" id="line-23-2"></span><span class="ResWord">function</span> help_general() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_24"> 24</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_24"></span><span class="anchor" id="line-24-2"></span> cat <span class="String">&lt;&lt; EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_25"> 25</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_25"></span><span class="anchor" id="line-25-2"></span><span class="String">openpod: Manage openpod service</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_26"> 26</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_26"></span><span class="anchor" id="line-26-2"></span><span class="String">openpod [subcommand] [opts]</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_27"> 27</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_27"></span><span class="anchor" id="line-27-2"></span><span class="String"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_28"> 28</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_28"></span><span class="anchor" id="line-28-2"></span><span class="String">subcommands:</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_29"> 29</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_29"></span><span class="anchor" id="line-29-2"></span><span class="String"> start</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_30"> 30</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_30"></span><span class="anchor" id="line-30-2"></span><span class="String"> stop</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_31"> 31</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_31"></span><span class="anchor" id="line-31-2"></span><span class="String"> logs</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_32"> 32</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_32"></span><span class="anchor" id="line-32-2"></span><span class="String"> help</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_33"> 33</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_33"></span><span class="anchor" id="line-33-2"></span><span class="String">EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_34"> 34</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_34"></span><span class="anchor" id="line-34-2"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_35"> 35</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_35"></span><span class="anchor" id="line-35-2"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_36"> 36</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_36"></span><span class="anchor" id="line-36-2"></span><span class="ResWord">function</span> help_start_service() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_37"> 37</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_37"></span><span class="anchor" id="line-37-2"></span> cat <span class="String">&lt;&lt; EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_38"> 38</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_38"></span><span class="anchor" id="line-38-2"></span><span class="String">start [VERSION]</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_39"> 39</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_39"></span><span class="anchor" id="line-39-2"></span><span class="String">EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_40"> 40</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_40"></span><span class="anchor" id="line-40-2"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_41"> 41</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_41"></span><span class="anchor" id="line-41-2"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_42"> 42</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_42"></span><span class="anchor" id="line-42-2"></span><span class="ResWord">function</span> start_service() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_43"> 43</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_43"></span><span class="anchor" id="line-43-2"></span> <span class="ResWord">local</span> version</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_44"> 44</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_44"></span><span class="anchor" id="line-44-2"></span> <span class="ResWord">if</span> [ <span class="String">"</span><span class="String">z</span><span class="String">${</span><span class="ID">1</span><span class="String">}</span><span class="String">"</span> = <span class="String">"z"</span> ]; <span class="ResWord">then</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_45"> 45</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_45"></span><span class="anchor" id="line-45-2"></span> <span class="ID">version</span>=latest</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_46"> 46</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_46"></span><span class="anchor" id="line-46-1"></span> <span class="ResWord">else</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_47"> 47</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_47"></span><span class="anchor" id="line-47-1"></span> <span class="ID">version</span>=<span class="String">${</span><span class="ID">1</span><span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_48"> 48</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_48"></span><span class="anchor" id="line-48-1"></span> <span class="ResWord">fi</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_49"> 49</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_49"></span><span class="anchor" id="line-49-1"></span> docker run <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_50"> 50</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_50"></span><span class="anchor" id="line-50-1"></span><span class="SPChar"></span> -e <span class="ID">APP_HOST</span>=localhost <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_51"> 51</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_51"></span><span class="anchor" id="line-51-1"></span><span class="SPChar"></span> -e <span class="ID">APP_PORT</span>=<span class="Number">8080</span> <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_52"> 52</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_52"></span><span class="anchor" id="line-52-1"></span><span class="SPChar"></span> -e <span class="ID">SECRET_KEY_BASE</span>=<span class="String">"SWl0xVj8AVXoc2G0eUk6VfeOd/lppjkaKbiHWs4ucxAUJ8+wzAEa4bMo0ZVjtVVk"</span> <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_53"> 53</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_53"></span><span class="anchor" id="line-53-1"></span><span class="SPChar"></span> -p <span class="Number">8080</span>:8080 <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_54"> 54</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_54"></span><span class="anchor" id="line-54-1"></span><span class="SPChar"></span> --restart always <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_55"> 55</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_55"></span><span class="anchor" id="line-55-1"></span><span class="SPChar"></span> --name openpod <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_56"> 56</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_56"></span><span class="anchor" id="line-56-1"></span><span class="SPChar"></span> --detach <span class="SPChar">\</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_57"> 57</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_57"></span><span class="anchor" id="line-57-1"></span><span class="SPChar"></span> offtopic/open-pod:<span class="String">${</span><span class="ID">version</span><span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_58"> 58</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_58"></span><span class="anchor" id="line-58-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_59"> 59</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_59"></span><span class="anchor" id="line-59-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_60"> 60</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_60"></span><span class="anchor" id="line-60-1"></span><span class="ResWord">function</span> help_stop_service() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_61"> 61</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_61"></span><span class="anchor" id="line-61-1"></span> cat <span class="String">&lt;&lt; EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_62"> 62</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_62"></span><span class="anchor" id="line-62-1"></span><span class="String">stop</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_63"> 63</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_63"></span><span class="anchor" id="line-63-1"></span><span class="String">EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_64"> 64</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_64"></span><span class="anchor" id="line-64-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_65"> 65</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_65"></span><span class="anchor" id="line-65-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_66"> 66</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_66"></span><span class="anchor" id="line-66-1"></span><span class="ResWord">function</span> stop_service() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_67"> 67</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_67"></span><span class="anchor" id="line-67-1"></span> docker stop openpod</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_68"> 68</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_68"></span><span class="anchor" id="line-68-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_69"> 69</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_69"></span><span class="anchor" id="line-69-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_70"> 70</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_70"></span><span class="anchor" id="line-70-1"></span><span class="ResWord">function</span> help_replace_service() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_71"> 71</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_71"></span><span class="anchor" id="line-71-1"></span> cat <span class="String">&lt;&lt; EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_72"> 72</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_72"></span><span class="anchor" id="line-72-1"></span><span class="String">replace [VERSION]</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_73"> 73</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_73"></span><span class="anchor" id="line-73-1"></span><span class="String">EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_74"> 74</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_74"></span><span class="anchor" id="line-74-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_75"> 75</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_75"></span><span class="anchor" id="line-75-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_76"> 76</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_76"></span><span class="anchor" id="line-76-1"></span><span class="ResWord">function</span> replace_service() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_77"> 77</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_77"></span><span class="anchor" id="line-77-1"></span> docker stop openpod || <span class="ResWord">true</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_78"> 78</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_78"></span><span class="anchor" id="line-78-1"></span> docker rm openpod || <span class="ResWord">true</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_79"> 79</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_79"></span><span class="anchor" id="line-79-1"></span> start_service <span class="String">${</span>@<span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_80"> 80</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_80"></span><span class="anchor" id="line-80-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_81"> 81</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_81"></span><span class="anchor" id="line-81-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_82"> 82</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_82"></span><span class="anchor" id="line-82-1"></span><span class="ResWord">function</span> help_logs() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_83"> 83</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_83"></span><span class="anchor" id="line-83-1"></span> cat <span class="String">&lt;&lt; EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_84"> 84</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_84"></span><span class="anchor" id="line-84-1"></span><span class="String">logs [OPTS]</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_85"> 85</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_85"></span><span class="anchor" id="line-85-1"></span><span class="String">OPTS: all docker-logs options</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_86"> 86</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_86"></span><span class="anchor" id="line-86-1"></span><span class="String">EOH</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_87"> 87</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_87"></span><span class="anchor" id="line-87-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_88"> 88</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_88"></span><span class="anchor" id="line-88-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_89"> 89</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_89"></span><span class="anchor" id="line-89-1"></span><span class="ResWord">function</span> logs() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_90"> 90</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_90"></span><span class="anchor" id="line-90-1"></span> docker logs <span class="String">${</span>@<span class="String">}</span> openpod</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_91"> 91</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_91"></span><span class="anchor" id="line-91-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_92"> 92</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_92"></span><span class="anchor" id="line-92-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_93"> 93</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_93"></span><span class="anchor" id="line-93-1"></span><span class="ResWord">function</span> main() {</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_94"> 94</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_94"></span><span class="anchor" id="line-94-1"></span> <span class="ResWord">case</span> <span class="String">${</span><span class="ID">1</span><span class="String">}</span> in</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_95"> 95</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_95"></span><span class="anchor" id="line-95-1"></span> start)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_96"> 96</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_96"></span><span class="anchor" id="line-96-1"></span> <span class="ResWord">shift</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_97"> 97</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_97"></span><span class="anchor" id="line-97-1"></span> start_service <span class="String">${</span>@<span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_98"> 98</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_98"></span><span class="anchor" id="line-98-1"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_99"> 99</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_99"></span><span class="anchor" id="line-99-1"></span> stop)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_100"> 100</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_100"></span><span class="anchor" id="line-100-1"></span> stop_service</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_101"> 101</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_101"></span><span class="anchor" id="line-101-1"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_102"> 102</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_102"></span><span class="anchor" id="line-102-1"></span> replace)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_103"> 103</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_103"></span><span class="anchor" id="line-103-1"></span> <span class="ResWord">shift</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_104"> 104</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_104"></span><span class="anchor" id="line-104-1"></span> replace_service <span class="String">${</span>@<span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_105"> 105</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_105"></span><span class="anchor" id="line-105-1"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_106"> 106</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_106"></span><span class="anchor" id="line-106-1"></span> logs)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_107"> 107</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_107"></span><span class="anchor" id="line-107-1"></span> <span class="ResWord">shift</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_108"> 108</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_108"></span><span class="anchor" id="line-108-1"></span> logs <span class="String">${</span>@<span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_109"> 109</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_109"></span><span class="anchor" id="line-109-1"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_110"> 110</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_110"></span><span class="anchor" id="line-110-1"></span> <span class="ResWord">help</span>)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_111"> 111</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_111"></span><span class="anchor" id="line-111-1"></span> help_fun <span class="String">${</span><span class="ID">2</span><span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_112"> 112</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_112"></span><span class="anchor" id="line-112-1"></span> <span class="ResWord">exit</span> <span class="Number">0</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_113"> 113</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_113"></span><span class="anchor" id="line-113-1"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_114"> 114</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_114"></span><span class="anchor" id="line-114-1"></span> -h|--help)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_115"> 115</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_115"></span><span class="anchor" id="line-115-1"></span> help_general</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_116"> 116</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_116"></span><span class="anchor" id="line-116-1"></span> <span class="ResWord">exit</span> <span class="Number">0</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_117"> 117</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_117"></span><span class="anchor" id="line-117-1"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_118"> 118</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_118"></span><span class="anchor" id="line-118-1"></span> *)</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_119"> 119</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_119"></span><span class="anchor" id="line-119-1"></span> help_fun</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_120"> 120</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_120"></span><span class="anchor" id="line-120-1"></span> <span class="ResWord">exit</span> <span class="Number">1</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_121"> 121</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_121"></span><span class="anchor" id="line-121-1"></span> ;;</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_122"> 122</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_122"></span><span class="anchor" id="line-122-1"></span> <span class="ResWord">esac</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_123"> 123</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_123"></span><span class="anchor" id="line-123-1"></span>}</span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_124"> 124</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_124"></span><span class="anchor" id="line-124-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_125"> 125</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_125"></span><span class="anchor" id="line-125-1"></span>main <span class="String">${</span>@<span class="String">}</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_126"> 126</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_126"></span><span class="anchor" id="line-126-1"></span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_127"> 127</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_127"></span><span class="anchor" id="line-127-1"></span><span class="Comment"># vim: set ft=sh et sw=0 ts=2 sts=0:</span></span>
<span class="line"><span class="LineNumber"><a href="#CA-89bf626c1f95133bce1b160fd7fffc233b803abc_128"> 128</a> </span><span class="LineAnchor" id="CA-89bf626c1f95133bce1b160fd7fffc233b803abc_128"></span><span class="anchor" id="line-128-1"></span><span class="Comment"></span></span>
</pre></div></div><span class="anchor" id="line-229"></span><span class="anchor" id="bottom"></span></div>
</div>
<hr>
2024-11-06 23:21
</body>
</html>