mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Feature #1490: Before a fsck, check that oned is not running
This commit is contained in:
1 parent
1fde81e78b
commit
0f395d0a26
1 file changed
+4
-1
+4
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user