Add build_version output on init where supported.

This commit is contained in:
thespad 2024-05-22 19:05:19 +01:00
parent d69c527089
commit 458334e3c1
No known key found for this signature in database
GPG key ID: 08F06191F4587860
3 changed files with 10 additions and 2 deletions

View file

@ -92,6 +92,7 @@ RUN \
/config \
/defaults \
/lsiopy && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*

View file

@ -92,6 +92,7 @@ RUN \
/config \
/defaults \
/lsiopy && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*

View file

@ -24,8 +24,14 @@ GID/UID
echo "
User UID: $(id -u abc)
User GID: $(id -g abc)
───────────────────────────────────────"
if [[ -f /build_version ]]; then
cat /build_version
echo '
───────────────────────────────────────
"
'
fi
lsiown abc:abc /app
lsiown abc:abc /config