Skip to content

Commit

Permalink
chore: Update genmon version to 0.0.6 and Docker image to bigbeartech…
Browse files Browse the repository at this point in the history
…world/big-bear-genmon:0.0.6
  • Loading branch information
dragonfire1119 committed May 16, 2024
1 parent 077257e commit 4dd1d49
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion genmon/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.5
0.0.6
2 changes: 1 addition & 1 deletion genmon/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
13 changes: 12 additions & 1 deletion genmon/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOL > /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 <<EOL > /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
Expand Down

0 comments on commit 4dd1d49

Please sign in to comment.