Skip to content

Commit

Permalink
Makes it possible to set empty password
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Chris B authored Aug 11, 2019
1 parent dc545b4 commit 1d356df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init-and-run-wiki
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 1d356df

Please sign in to comment.