Skip to content

Commit

Permalink
Fixed send notification
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetovd committed Nov 20, 2023
1 parent 9b5b0da commit f865ed2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
ReleemAgentVersion = "1.9.1"
ReleemAgentVersion = "1.9.2"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion current_version_agent
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.1
1.9.2
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
# install.sh - Version 1.9.1
# install.sh - Version 1.9.2
# (C) Releem, Inc 2022
# All rights reserved

# Releem installation script: install and set up the Releem Agent on supported Linux distributions
# using the package manager.

set -e
install_script_version=1.9.1
install_script_version=1.9.2
logfile="releem-install.log"

WORKDIR="/opt/releem"
Expand Down Expand Up @@ -53,7 +53,6 @@ function releem_update() {
$sudo_cmd curl -w "%{http_code}" -L -o $WORKDIR/mysqlconfigurer.sh https://releem.s3.amazonaws.com/v2/mysqlconfigurer.sh
$sudo_cmd curl -w "%{http_code}" -L -o $WORKDIR/releem-agent https://releem.s3.amazonaws.com/v2/releem-agent-$(arch)
$sudo_cmd chmod 755 $WORKDIR/mysqlconfigurer.sh $WORKDIR/releem-agent
$sudo_cmd $WORKDIR/releem-agent install || true
$sudo_cmd $WORKDIR/releem-agent start || true
$sudo_cmd $WORKDIR/releem-agent -f

Expand Down
5 changes: 3 additions & 2 deletions mysqlconfigurer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# mysqlconfigurer.sh - Version 1.9.1
# mysqlconfigurer.sh - Version 1.9.2
# (C) Releem, Inc 2022
# All rights reserved

Expand All @@ -12,7 +12,7 @@ MYSQLTUNER_REPORT=$MYSQLCONFIGURER_PATH"mysqltunerreport.json"
RELEEM_MYSQL_VERSION=$MYSQLCONFIGURER_PATH"mysql_version"
MYSQLCONFIGURER_CONFIGFILE="${MYSQLCONFIGURER_PATH}${MYSQLCONFIGURER_FILE_NAME}"
MYSQL_MEMORY_LIMIT=0
VERSION="1.9.1"
VERSION="1.9.2"
RELEEM_INSTALL_PATH=$MYSQLCONFIGURER_PATH"install.sh"
logfile="releem-mysqlconfigurer.log"

Expand All @@ -33,6 +33,7 @@ function on_exit() {
trap on_exit EXIT

function update_agent() {
trap - EXIT
NEW_VER=$(curl -s -L https://releem.s3.amazonaws.com/v2/current_version_agent)
if [ "$NEW_VER" != "$VERSION" ]; then
if [ "$(printf '%s\n' "$NEW_VER" "$VERSION" | sort -V | head -n1)" = "$VERSION" ];
Expand Down

0 comments on commit f865ed2

Please sign in to comment.