mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Update gravity.sh
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br> Signed-off-by: Dominik <DL6ER@users.noreply.github.com>
This commit is contained in:
parent
fdf44355d2
commit
9a9af719f0
@ -357,7 +357,7 @@ try_restore_backup () {
|
|||||||
num=$1
|
num=$1
|
||||||
# Check if a backup exists
|
# Check if a backup exists
|
||||||
if [ -f "${gravityBCKfile}.${num}" ]; then
|
if [ -f "${gravityBCKfile}.${num}" ]; then
|
||||||
echo -e " ${INFO} Attempting to restore previous database from backup"
|
echo -e " ${INFO} Attempting to restore previous database from backup no. ${num}"
|
||||||
cp "${gravityBCKfile}.${num}" "${gravityDBfile}"
|
cp "${gravityBCKfile}.${num}" "${gravityDBfile}"
|
||||||
|
|
||||||
# If the backup was successfully copied, prepare a new gravity database from
|
# If the backup was successfully copied, prepare a new gravity database from
|
||||||
|
Loading…
Reference in New Issue
Block a user