[chore] Delete unused code.

This commit is contained in:
m0wer 2020-09-11 11:11:35 +02:00
parent 8ba877a451
commit 7e16d405de
No known key found for this signature in database
GPG key ID: 30B4ECB4ECEEF686
2 changed files with 0 additions and 16 deletions

View file

@ -17,18 +17,6 @@ if [ ! -d /var/lib/tiddlywiki/mywiki ]; then
fi
# Configure the tiddlywiki to be served on a path if it is given
WEBHOST_TID=/var/lib/tiddlywiki/mywiki/tiddlers/\$__config_tiddlyweb_host.tid
if [ -n "${SERVE_URI}" ]; then
cp /tiddlyweb_host_template ${WEBHOST_TID}
echo '$protocol$//$host$'${SERVE_URI}"/" >> ${WEBHOST_TID}
echo "tiddlywiki will be served at ${SERVE_URI}"
else
if [ -e ${WEBHOST_TID} ]; then
rm ${WEBHOST_TID}
fi
fi
# Start the tiddlywiki server
exec /usr/bin/env node $NODEJS_V8_ARGS $tiddlywiki_script mywiki --server 8080 $:/core/save/all text/plain text/html "${USERNAME:-user}" "${PASSWORD-wiki}" 0.0.0.0 ${SERVE_URI}

View file

@ -1,4 +0,0 @@
title: $:/config/tiddlyweb/host
type: text/vnd.tiddlywiki