Skip to content

Commit 3b8cdfd

Browse files
committed
Merge branch 'pr/1'
2 parents e41355d + 0bab3cd commit 3b8cdfd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

bin/v-backup-users

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ source $HESTIA/conf/hestia.conf
2222
# Action #
2323
#----------------------------------------------------------#
2424

25+
$BIN/v-check-vesta-license >/dev/null
26+
27+
# Auto-repair all databases before backuping all accounts
28+
mysqlrepair --all-databases --check --auto-repair
29+
2530
if [ -z "$BACKUP_SYSTEM" ]; then
2631
exit
2732
fi

func/main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,10 +947,10 @@ wait_for_backup_if_it_is_not_time_for_backup() {
947947
then
948948
hour=$(date +"%H");
949949
while [ "$hour" -gt "6" ]; do
950-
if [ "$WAIT_LOOP_ENTERED" -eq 0 ]; then
950+
# if [ "$WAIT_LOOP_ENTERED" -eq 0 ]; then
951951
# do something when enter sleeping state
952952
# $BIN/v-restart-web-backend
953-
fi
953+
# fi
954954
WAIT_LOOP_ENTERED=1
955955
current_date_time="`date "+%Y-%m-%d %H:%M:%S"`";
956956
echo "$current_date_time - wait to backup user $user - current hour is $hour";

0 commit comments

Comments
 (0)