mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Apply suggestions from code review
Co-authored-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
parent
7167e6d5e4
commit
2e1ce7fc87
1 changed files with 2 additions and 0 deletions
|
@ -880,6 +880,8 @@ database_recovery() {
|
||||||
echo -e "${OVER} ${TICK} ${str} - success"
|
echo -e "${OVER} ${TICK} ${str} - success"
|
||||||
mv "${gravityDBfile}" "${gravityDBfile}.old"
|
mv "${gravityDBfile}" "${gravityDBfile}.old"
|
||||||
mv "${gravityDBfile}.recovered" "${gravityDBfile}"
|
mv "${gravityDBfile}.recovered" "${gravityDBfile}"
|
||||||
|
echo -ne " ${INFO} ${gravityDBfile} has been recovered"
|
||||||
|
echo -ne " ${INFO} The old ${gravityDBfile} has been moved to ${gravityDBfile}.old"
|
||||||
else
|
else
|
||||||
echo -e "${OVER} ${CROSS} ${str} - the following errors happened:"
|
echo -e "${OVER} ${CROSS} ${str} - the following errors happened:"
|
||||||
while IFS= read -r line ; do echo " - $line"; done <<< "$result"
|
while IFS= read -r line ; do echo " - $line"; done <<< "$result"
|
||||||
|
|
Loading…
Reference in a new issue