Skip to content

Commit

Permalink
fix: unset LD paths set by Acronis
Browse files Browse the repository at this point in the history
Acronis includes an outdated version of libstdc. This library is
used by MySQL. This resulted in failures on more recent versions
of Ubuntu as Acronis sets LD_LIBRARY_PATH and LD_PRELOAD.
  • Loading branch information
ju5t committed Aug 30, 2023
1 parent d07d182 commit df3a52a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions mysqlbackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

set -euo pipefail

unset LD_LIBRARY_PATH
unset LD_PRELOAD

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
source "${DIR}/functions.sh"

Expand Down
5 changes: 4 additions & 1 deletion mysqlfreeze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

set -euo pipefail

unset LD_LIBRARY_PATH
unset LD_PRELOAD

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
source "${DIR}/functions.sh"

Expand Down Expand Up @@ -63,4 +66,4 @@ while [ ! -f "$LOGGING_LOCATION/$FREEZE_LOCKFILE" ]; do
done

echo $FREEZE_SESSION_PID > "$LOGGING_LOCATION/$FREEZE_LOCKFILE"
echo "$(date -Ins) - Freeze successful." >> "$LOGGING_LOCATION/$FREEZE_LOGFILE"
echo "$(date -Ins) - Freeze successful." >> "$LOGGING_LOCATION/$FREEZE_LOGFILE"
5 changes: 4 additions & 1 deletion mysqlthaw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

set -euo pipefail

unset LD_LIBRARY_PATH
unset LD_PRELOAD

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
source "${DIR}/functions.sh"

Expand All @@ -24,4 +27,4 @@ pkill -9 -P $FREEZE_SESSION_PID
echo "$(date -Ins) - Deleting freeze lock file..." >> "$LOGGING_LOCATION/$FREEZE_LOGFILE"
rm -f "$LOGGING_LOCATION/$FREEZE_LOCKFILE"

echo "$(date -Ins) - Unfreeze successful." >> "$LOGGING_LOCATION/$FREEZE_LOGFILE"
echo "$(date -Ins) - Unfreeze successful." >> "$LOGGING_LOCATION/$FREEZE_LOGFILE"

0 comments on commit df3a52a

Please sign in to comment.