File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,18 @@ if [ -e "/var/tmp/clustercheck.disabled" ]; then
29
29
exit 1
30
30
fi
31
31
32
- MYSQL_USERNAME=" ${1-clustercheckuser} "
33
- MYSQL_PASSWORD=" ${2-clustercheckpassword! } "
34
- AVAILABLE_WHEN_DONOR=${3:- 0}
35
- ERR_FILE=" ${4:-/ dev/ null} "
36
- AVAILABLE_WHEN_READONLY=${5:- 1}
37
- DEFAULTS_EXTRA_FILE=${6:-/ etc/ my.cnf}
32
+ set -e
33
+
34
+ if [ -f /etc/sysconfig/clustercheck ]; then
35
+ . /etc/sysconfig/clustercheck
36
+ fi
37
+
38
+ MYSQL_USERNAME=" ${MYSQL_USERNAME:= -clustercheckuser} "
39
+ MYSQL_PASSWORD=" ${MYSQL_PASSWORD-clustercheckpassword! } "
40
+ AVAILABLE_WHEN_DONOR=${AVAILABLE_WHEN_DONOR:- 0}
41
+ ERR_FILE=" ${ERR_FILE:-/ dev/ null} "
42
+ AVAILABLE_WHEN_READONLY=${AVAILABLE_WHEN_READONLY:- 1}
43
+ DEFAULTS_EXTRA_FILE=${DEFAULTS_EXTRA_FILE:-/ etc/ my.cnf}
38
44
39
45
# Timeout exists for instances where mysqld may be hung
40
46
TIMEOUT=10
You can’t perform that action at this time.
0 commit comments