Files
lazyjournal/entrypoint.sh
2025-11-27 09:36:58 +03:00

12 lines
345 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
lazyjournal $OPTIONS
fi