Add fix to init script from mandersson

This commit is contained in:
Micke Nordin 2024-10-03 14:18:32 +02:00
parent 25309ea51f
commit 1a223f2846
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -7,7 +7,7 @@ if [[ -f ${init_file} ]]; then
master_command="${master_command}, MASTER_HOST='<%= @first_db %>', MASTER_USER='backup'"
master_command="${master_command}, MASTER_PASSWORD='<%= @backup_password%>', MASTER_SSL=1"
master_command="${master_command}, MASTER_CONNECT_RETRY=20"
zcat ${init_file} | ${mysql}
zcat ${init_file} | tail +2 | ${mysql}
${mysql} -e "${master_command}"
${mysql} -e "START SLAVE"
sleep 3s