From 1d356df7010758c79f67254ba3be5d35a39765c4 Mon Sep 17 00:00:00 2001 From: Chris B Date: Sun, 11 Aug 2019 16:02:46 +0200 Subject: [PATCH] Makes it possible to set empty password Wraps user and password into double quotes to avoid variables with spaces to mess with the command line. Also removes the colon from the password substitution to allow for empty passwords. Only done for password, as empty user would possibly mess heavily with TiddlyWiki, as it uses the username to sign entries. --- init-and-run-wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-and-run-wiki b/init-and-run-wiki index 67181ce..2eaa889 100755 --- a/init-and-run-wiki +++ b/init-and-run-wiki @@ -31,5 +31,5 @@ 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} +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}