And also ignore witness DB >_>

This commit is contained in:
Alexandre Aubin 2023-06-14 10:22:59 +02:00
parent a40df5d732
commit 7831c5fa1c

View file

@ -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
}