mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
And also ignore witness DB >_>
This commit is contained in:
parent
a40df5d732
commit
7831c5fa1c
1 changed files with 8 additions and 8 deletions
|
@ -37,8 +37,8 @@ set_witness_files () {
|
||||||
create_witness_file "/etc/systemd/system/witnessfile.service" file
|
create_witness_file "/etc/systemd/system/witnessfile.service" file
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
RUN_INSIDE_LXC mysqladmin --wait status > /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
|
#echo "CREATE DATABASE witnessdb" | RUN_INSIDE_LXC mysql --wait > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
check_witness_files () {
|
check_witness_files () {
|
||||||
|
@ -83,10 +83,10 @@ check_witness_files () {
|
||||||
check_file_exist "/etc/systemd/system/witnessfile.service"
|
check_file_exist "/etc/systemd/system/witnessfile.service"
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
if ! RUN_INSIDE_LXC mysqlshow witnessdb > /dev/null 2>&1
|
#if ! RUN_INSIDE_LXC mysqlshow witnessdb > /dev/null 2>&1
|
||||||
then
|
#then
|
||||||
log_error "The database witnessdb is missing ! Something gone wrong !"
|
# log_error "The database witnessdb is missing ! Something gone wrong !"
|
||||||
SET_RESULT "failure" witness
|
# SET_RESULT "failure" witness
|
||||||
return 1
|
# return 1
|
||||||
fi
|
#fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue