mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Log mysqlrepair
This commit is contained in:
parent
81fba76695
commit
38f5b16019
1 changed files with 3 additions and 2 deletions
|
@ -22,10 +22,12 @@ source $VESTA/conf/vesta.conf
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
log=$VESTA/log/backup.log
|
||||
|
||||
$BIN/v-check-vesta-license >/dev/null
|
||||
|
||||
# Auto-repair all databases before backuping all accounts
|
||||
mysqlrepair --all-databases --check --auto-repair > /dev/null 2>&1
|
||||
mysqlrepair --all-databases --check --auto-repair >> $log 2>&1
|
||||
|
||||
if [ -z "$BACKUP_SYSTEM" ]; then
|
||||
exit
|
||||
|
@ -37,7 +39,6 @@ for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
|
|||
fi
|
||||
wait_for_backup_if_it_is_not_time_for_backup
|
||||
check_suspend=$(grep "SUSPENDED='no'" $VESTA/data/users/$user/user.conf)
|
||||
log=$VESTA/log/backup.log
|
||||
if [ ! -z "$check_suspend" ]; then
|
||||
echo -e "================================" >> $log
|
||||
echo -e "$user" >> $log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue