Feature #1490: Before a fsck, check that oned is not running

This commit is contained in:
Carlos Martín committed 2012-10-10 17:53:14 +02:00
1 parent 1fde81e78b
commit 0f395d0a26
1 file changed
+4 -1
+4 -1
View File
@@ -172,8 +172,11 @@ class OneDB
file = "#{RUBY_LIB_LOCATION}/onedb/#{version}_fsck.rb"
if File.exists? file
one_not_running()
begin
# At least one upgrade will be executed, make DB backup
# FSCK will be executed, make DB backup
backup(ops[:backup], ops)
puts " > Running fsck" if ops[:verbose]