mirror of
https://github.com/m0wer/tiddlywiki-docker.git
synced 2026-01-23 02:24:25 +00:00
[chore] Delete unused code.
This commit is contained in:
parent
8ba877a451
commit
7e16d405de
2 changed files with 0 additions and 16 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
title: $:/config/tiddlyweb/host
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue