Skip to content

Commit aca2342

Browse files
committed
Update docker-entrypoint.sh
Added version to log
1 parent 76ce09e commit aca2342

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docker-entrypoint.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ UPLOAD_MAX_FILESIZE="${UPLOAD_MAX_FILESIZE:-8M}"
2020
# Useful for comparing (and fixing) changes, if necessary.
2121
DEBUG="TRUE"
2222

23+
# Read Current LLC Version
24+
# When version.json has CR/LF, it fx up, so have to add tr to remove the line endings.
25+
v="$(cat /htdocs/version.json | tr -d '\r\n')"
26+
27+
# Calc length of whitespace we need, based on version length.
28+
vlen="$((27-${#v}))"
29+
2330
echo '+ ------------------------------------------------------------------ +'
24-
echo '| LITTLELINK CUSTOM |'
31+
printf '| LITTLELINK CUSTOM v%s%*s|\n' "${v}" "$vlen" | tr ' ' " "
2532

2633
# + ---------------- + #
2734
# | -- HTTPD.CONF -- | #

0 commit comments

Comments
 (0)