From 7831c5fa1c0e92ea2174845f15989fcc6625bea8 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 14 Jun 2023 10:22:59 +0200 Subject: [PATCH] And also ignore witness DB >_> --- lib/witness.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/witness.sh b/lib/witness.sh index c8769cc..5991d73 100644 --- a/lib/witness.sh +++ b/lib/witness.sh @@ -37,8 +37,8 @@ set_witness_files () { create_witness_file "/etc/systemd/system/witnessfile.service" file # Database - RUN_INSIDE_LXC mysqladmin --wait status > /dev/null 2>&1 - echo "CREATE DATABASE witnessdb" | RUN_INSIDE_LXC mysql --wait > /dev/null 2>&1 + #RUN_INSIDE_LXC mysqladmin --wait status > /dev/null 2>&1 + #echo "CREATE DATABASE witnessdb" | RUN_INSIDE_LXC mysql --wait > /dev/null 2>&1 } check_witness_files () { @@ -83,10 +83,10 @@ check_witness_files () { check_file_exist "/etc/systemd/system/witnessfile.service" # Database - if ! RUN_INSIDE_LXC mysqlshow witnessdb > /dev/null 2>&1 - then - log_error "The database witnessdb is missing ! Something gone wrong !" - SET_RESULT "failure" witness - return 1 - fi + #if ! RUN_INSIDE_LXC mysqlshow witnessdb > /dev/null 2>&1 + #then + # log_error "The database witnessdb is missing ! Something gone wrong !" + # SET_RESULT "failure" witness + # return 1 + #fi }