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
|
if $_failed ; then
|
||||||
|
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "\n\n$(cat $log_file)"
|
||||||
|
|
||||||
if [[ ${#_tables_not_deleted[@]} -gt 0 ]] ; then
|
if [[ ${#_tables_not_deleted[@]} -gt 0 ]] ; then
|
||||||
echo ""
|
echo ""
|
||||||
@ -625,6 +625,18 @@ if [[ "$DATABASE_TYPE" = 'mysql' ]]; then
|
|||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
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
|
else
|
||||||
echo_ok
|
echo_ok
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user