cleaned up codeblock

This commit is contained in:
ahriman 2018-12-23 18:29:08 +01:00
parent 63f7171ab2
commit 6214791319
2 changed files with 14 additions and 3 deletions

View File

@ -28,6 +28,10 @@ body {
margin-right: auto;
padding-bottom: 70px;
}
#codeblock {
margin-left: 10%;
margin-right: 10%;
}
a:link {
text-decoration: none;
color:#DF3A01;
@ -49,6 +53,9 @@ font-weight: bold;
p {
text-indent: 15px;
}
pre {
text-indent: 0px;
}
code {
text-indent: 30px;
}

View File

@ -30,8 +30,10 @@ _/ |_|__| | __| _/____ ________________ __ _ _| |
<li><a href="/crawl/ttyrec">ttyrec Recordings</a></li>
</ul></p>
<p>DCSS-git/trunk is updated nightly. Morgues, RC files, and ttyrecs are <a href="https://tildegit.org/crawl">backed up to our TildeGit</a> daily.</p>
<p>Run a tildeverse server and want to easily provide console access to this DCSS instance for your users? Grab the ssh key, place it somewhere on your server, and create a file at <code>/usr/local/bin/dcss</code> with the following contents:<br />
<code><pre>#!/bin/bash
<p>Run a tildeverse server and want to easily provide console access to this DCSS instance for your users? Grab the ssh key, place it somewhere on your server, and create a file at <code>/usr/local/bin/dcss</code> with the following contents:</p>
<div id="codeblock">
<code>
<pre>#!/bin/bash
KEYFILE=/etc/dcss/dcss.key
@ -39,7 +41,9 @@ if [ -f $KEYFILE ]; then
ssh -i $KEYFILE dcss@crawl.tildeverse.org
else
echo "dcss SSH key does not exist."
fi</pre></code></p>
fi</pre>
</code>
</div>
<p>Be sure to replace <code>/etc/dcss/dcss.key</code> with the key location on your server and to make <code>/usr/local/bin/dcss</code> executable.</p>
</div>
</div>