Skip to content

Commit bdced66

Browse files
committed
v-delete-user-backup update hestiacp#822
1 parent 6f1a141 commit bdced66

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ All notable changes to this project will be documented in this file.
3333
- Roundcube fixes for PHP 7.4 compatibility.
3434
- Added delay when entering wrong username/password/2fa
3535
- Improved "Forgot password" function prevent brute forcing
36+
- Update Backup counter propperly when v-delete-user-backup ran
3637

3738
## [1.1.1] - 2020-03-24 - Hotfix
3839
### Features

bin/v-delete-user-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sed -i "/BACKUP='$2' /d" $USER_DATA/backup.conf
4747
#----------------------------------------------------------#
4848

4949
# Update counter
50-
U_BACKUPS=$(ls $BACKUP/|grep "^$user."|wc -l)
50+
U_BACKUPS=$(grep BACKUP $USER_DATA/backup.conf |wc -l)
5151
update_user_value "$user" '$U_BACKUPS' "$U_BACKUPS"
5252

5353
# Logging

0 commit comments

Comments
 (0)