1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

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

This commit is contained in:
Carlos Martín 2012-10-10 17:53:14 +02:00
parent 1fde81e78b
commit 0f395d0a26

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]