expanded dcss tilde script

This commit is contained in:
ahriman 2018-12-23 18:23:33 +01:00
parent 1e7d34693b
commit 63f7171ab2
1 changed files with 9 additions and 2 deletions

View File

@ -31,8 +31,15 @@ _/ |_|__| | __| _/____ ________________ __ _ _| |
</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/sh
ssh -i /etc/dcss/dcss.key dcss@crawl.tildeverse.org</pre></code></p>
<code><pre>#!/bin/bash
KEYFILE=/etc/dcss/dcss.key
if [ -f $KEYFILE ]; then
ssh -i $KEYFILE dcss@crawl.tildeverse.org
else
echo "dcss SSH key does not exist."
fi</pre></code></p>
<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>