restore_nextcloud.sh: some changes in error handling.
This commit is contained in:
parent
00cce38bf1
commit
9893bd4371
@ -615,7 +615,7 @@ if [[ "$DATABASE_TYPE" = 'mysql' ]]; then
|
||||
if $_failed ; then
|
||||
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
error "\n\n$(cat $log_file)"
|
||||
|
||||
if [[ ${#_tables_not_deleted[@]} -gt 0 ]] ; then
|
||||
echo ""
|
||||
@ -625,6 +625,18 @@ if [[ "$DATABASE_TYPE" = 'mysql' ]]; then
|
||||
done
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
|
||||
blank_line
|
||||
|
||||
else
|
||||
echo_ok
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user