This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Source the user config - Mostly useful for setting interface, vip, label as desired | |
# Example: | |
# # cat /etc/mha/switch.conf | |
# vip=172.16.3.1 | |
# interface=eth2 | |
# label=eth2:0 | |
config=/etc/mysql-masterha/vip.conf | |
[ -e "${config}" ] && . "${config}" |