mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
ALLOW_MYSQL_REPAIR
This commit is contained in:
parent
d2bf71d9b2
commit
0bbcacc74f
1 changed files with 9 additions and 1 deletions
|
@ -17,6 +17,12 @@ source /etc/profile
|
|||
source $VESTA/func/main.sh
|
||||
source $VESTA/conf/vesta.conf
|
||||
|
||||
ALLOW_MYSQL_REPAIR=1
|
||||
|
||||
if [ $# -ge 1 ]; then
|
||||
ALLOW_MYSQL_REPAIR=$1
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
|
@ -32,7 +38,9 @@ if [ ! -z "$NOTIFY_ADMIN_FULL_BACKUP" ]; then
|
|||
fi
|
||||
|
||||
# Auto-repair all databases before backuping all accounts
|
||||
nice -n 19 ionice -c 3 mysqlrepair --all-databases --check --auto-repair >> $log 2>&1
|
||||
if [ $ALLOW_MYSQL_REPAIR -eq 1 ]; then
|
||||
nice -n 19 ionice -c 3 mysqlrepair --all-databases --check --auto-repair >> $log 2>&1
|
||||
fi
|
||||
|
||||
if [ -z "$BACKUP_SYSTEM" ]; then
|
||||
exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue