Commit 87774ccc authored by MICHON Nicolas's avatar MICHON Nicolas

[dev] Keep data/grid5000/grid5000.json when removing data directory

parent 64fcf7d0
......@@ -117,8 +117,9 @@ if global_hash['uid']
end
puts "Generating the reference api:\n\n"
puts "Removing #{refapi_path} directory:\n"
FileUtils.rm_rf(refapi_path)
puts "Removing data directory:\n"
FileUtils.rm_rf(Pathname.new(refapi_path).join("sites"))
FileUtils.rm_rf(Pathname.new(refapi_path).join("network_equipments"))
puts "Done."
# Generate global network_equipments (renater links)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment