mirror of
https://github.com/Lifailon/lazyjournal.git
synced 2026-11-11 01:09:46 +01:00
12 lines
350 B
Bash
12 lines
350 B
Bash
#!/bin/sh
|
|
|
|
TTYD_MODE=$(echo "$TTYD" | tr '[:upper:]' '[:lower:]')
|
|
if [ "$TTYD_MODE" = "true" ]; then
|
|
TTYD_OPTIONS="-W -p ${PORT:-5555}"
|
|
if [ -n "${USERNAME}" ] && [ -n "${PASSWORD}" ]; then
|
|
TTYD_OPTIONS="$TTYD_OPTIONS -c ${USERNAME}:${PASSWORD}"
|
|
fi
|
|
ttyd $TTYD_OPTIONS lazyjournal $OPTIONS
|
|
else
|
|
exec lazyjournal $OPTIONS
|
|
fi |