Print the build version when the container starts

This commit is contained in:
Josh.5
2022-01-15 23:57:32 +13:00
parent ba3f96c5fd
commit 57641f7536
2 changed files with 8 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
# File Created: Saturday, 8th January 2022 7:08:46 pm
# Author: Josh.5 (jsunnex@gmail.com)
# -----
# Last Modified: Tuesday, 11th January 2022 8:44:17 pm
# Last Modified: Saturday, 15th January 2022 11:55:48 pm
# Modified By: Josh.5 (jsunnex@gmail.com)
###
@@ -17,6 +17,11 @@ if [ ! -z "$@" ]; then
exit $?
fi
# Print the current version (if the file exists)
if [[ -f /version.txt ]]; then
echo "Version: $(cat /version.txt)"
fi
# Execute all container init scripts
for init_script in /etc/cont-init.d/*.sh ; do
echo