Bug #1564: Do not restore the db when the backup cannot be done

This commit is contained in:
Carlos Martín committed 2012-11-08 13:02:32 +01:00
1 parent 627058c341
commit f582cd0e08
1 file changed
+3 -3
+3 -3
View File
@@ -183,10 +183,10 @@ class OneDB
"#{@backend.db_version}, current database version is #{version}"
end
begin
# FSCK will be executed, make DB backup
backup(ops[:backup], ops)
# FSCK will be executed, make DB backup
backup(ops[:backup], ops)
begin
puts " > Running fsck" if ops[:verbose]
result = @backend.fsck