Skip to content

Commit

Permalink
Fix for proxysql check
Browse files Browse the repository at this point in the history
  • Loading branch information
omega8cc committed Feb 4, 2020
1 parent c0f5137 commit ee91623
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aegir/tools/bin/cluster
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,11 @@ Dir::Etc::SourceList "/etc/apt/sources.list";
pxyCmd="SELECT hostgroup_id,hostname,port,status,weight FROM mysql_servers;"
ssh ${_NOSTRICT} root@${_WEB_NODE_IP} "${pxyCtx} -e \"${pxyCmd}\""

isPxy=`ssh ${_NOSTRICT} root@${_WEB_NODE_IP} "$(which proxysql 2>&1)"`
echo "isPxy is ${isPxy}"
isPxy=$(vserver ${idn} exec which proxysql 2>&1)
echo "Relative isPxy is ${isPxy}"
echo "Absolute isPxy is /vservers/${idn}${isPxy}"

if [ -x "${isPxy}" ] \
if [ -x "/vservers/${idn}${isPxy}" ] \
&& [ -e "/vservers/${idn}/etc/proxysql.cnf" ] \
&& [ -e "${pXcnf}" ]; then
echo "INFO: Updating ProxySQL Galera Checker..."
Expand Down

0 comments on commit ee91623

Please sign in to comment.