From 4dd1d499708b2c90536a9c86c341dd7bf7d68429 Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 16 May 2024 14:50:04 -0500 Subject: [PATCH] chore: Update genmon version to 0.0.6 and Docker image to bigbeartechworld/big-bear-genmon:0.0.6 --- genmon/VERSION | 2 +- genmon/docker-compose.yml | 2 +- genmon/entrypoint.sh | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/genmon/VERSION b/genmon/VERSION index bbdeab6..1750564 100644 --- a/genmon/VERSION +++ b/genmon/VERSION @@ -1 +1 @@ -0.0.5 +0.0.6 diff --git a/genmon/docker-compose.yml b/genmon/docker-compose.yml index 4e162c0..cfb850e 100644 --- a/genmon/docker-compose.yml +++ b/genmon/docker-compose.yml @@ -6,7 +6,7 @@ services: # 'big-bear-genmon' is the name of the service big-bear-genmon: # Specifies the Docker image to use for the big-bear-genmon service - image: bigbeartechworld/big-bear-genmon:0.0.5 + image: bigbeartechworld/big-bear-genmon:0.0.6 # Environment variables to set inside the container environment: - TZ=America/Chicago # Set the timezone to 'America/Chicago' diff --git a/genmon/entrypoint.sh b/genmon/entrypoint.sh index 7270355..7488594 100644 --- a/genmon/entrypoint.sh +++ b/genmon/entrypoint.sh @@ -12,14 +12,25 @@ if [ ! -f /git/genmon/startgenmon.sh ]; then rm -rf /git/genmon/.git fi +# Wait for the /git/genmon/startgenmon.sh to exist +while [ ! -f /git/genmon/startgenmon.sh ]; do + echo "Waiting for /git/genmon/startgenmon.sh to be available..." + sleep 1 +done + # Ensure the /etc/genmon directory exists and has the necessary configuration files if [ ! -f /etc/genmon/genmon.conf ]; then echo "Creating default configuration in /etc/genmon..." mkdir -p /etc/genmon - cat < /etc/genmon/genmon.conf + if [ -f /git/genmon/conf/genmon.conf ]; then + cp /git/genmon/conf/genmon.conf /etc/genmon/genmon.conf + else + echo "Warning: /git/genmon/conf/genmon.conf does not exist." + cat < /etc/genmon/genmon.conf # Default genmon configuration use_serial_tcp = $USE_SERIAL_TCP EOL + fi fi # Change the environment variable to use serial TCP in the genmon.conf file