Skip to content

Commit

Permalink
Introduce DEBUG_IGNORE_SCRIPT_FAILURES option to rescue from failure …
Browse files Browse the repository at this point in the history
…of the setup script
  • Loading branch information
nak3 committed Nov 6, 2017
1 parent c5550f0 commit 061fd47
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 5.5/root/usr/share/container-scripts/mysql/passwd-change.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
set +e
# Set the password for MySQL user and root everytime this container is started.
# This allows to change the password by editing the deployment configuration.
if [[ -v MYSQL_USER && -v MYSQL_PASSWORD ]]; then
Expand All @@ -23,4 +22,3 @@ else
FLUSH PRIVILEGES;
EOSQL
fi
set -e
3 changes: 3 additions & 0 deletions root-common/usr/bin/run-mysqld
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
export_vars=$(cgroup-limits); export $export_vars
source ${CONTAINER_SCRIPTS_PATH}/common.sh
set -eu
if [[ -v DEBUG_IGNORE_SCRIPT_FAILURES ]]; then
set +e
fi

export_setting_variables

Expand Down
3 changes: 3 additions & 0 deletions root-common/usr/bin/run-mysqld-master
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
export_vars=$(cgroup-limits); export $export_vars
source ${CONTAINER_SCRIPTS_PATH}/common.sh
set -eu
if [[ -v DEBUG_IGNORE_SCRIPT_FAILURES ]]; then
set +e
fi

export_setting_variables

Expand Down
3 changes: 3 additions & 0 deletions root-common/usr/bin/run-mysqld-slave
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
export_vars=$(cgroup-limits); export $export_vars
source ${CONTAINER_SCRIPTS_PATH}/common.sh
set -eu
if [[ -v DEBUG_IGNORE_SCRIPT_FAILURES ]]; then
set +e
fi

export_setting_variables

Expand Down
3 changes: 3 additions & 0 deletions root-common/usr/share/container-scripts/mysql/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ function log_volume_info {
shift
done
set -e
if [[ -v DEBUG_IGNORE_SCRIPT_FAILURES ]]; then
set +e
fi
}

0 comments on commit 061fd47

Please sign in to comment.