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:
parent
1fde81e78b
commit
0f395d0a26
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user