add version file to package and print version on start

This commit is contained in:
2024-03-08 12:39:18 -08:00
parent a2a9395e39
commit 0ef5029931
2 changed files with 7 additions and 1 deletions
@@ -6,8 +6,13 @@ CONF_FILE=${LOCATION}/instances.conf
INSTANCES_DIR=${LOCATION}/instances
COMPOSE_FILE=${LOCATION}/docker-compose.yml
ENV_TEMPLATE=${LOCATION}/template.env
VERSION_FILE=${LOCATION}/version
echo "starting all instances"
version=$(head -n 1 ${VERSION_FILE} 2>/dev/null)
if [ $? -ne 0 ];then
version="unknown version"
fi
echo "Starting Streamline EMR: $version"
if [ ! -f "${CONF_FILE}" ]; then
echo "missing conf file: ${CONF_FILE}"