mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-23 22:53:43 +00:00
Keep up to 10 database backups
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
a5cb07c76e
commit
fdf44355d2
1 changed files with 2 additions and 2 deletions
|
@ -425,14 +425,14 @@ gravity_DownloadBlocklists() {
|
|||
echo -e "\\n ${CROSS} Unable to copy data from ${gravityDBfile} to ${gravityTEMPfile}\\n ${output}"
|
||||
|
||||
# Try to attempt a backup restore
|
||||
for i in {1..9}; do
|
||||
for i in {1..10}; do
|
||||
if try_restore_backup "${i}"; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# If none of the attempts worked, return 1
|
||||
if [[ "${i}" -eq 9 ]]; then
|
||||
if [[ "${i}" -eq 10 ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue