Skip to content

Commit

Permalink
fb_iproute: ensure directory exists
Browse files Browse the repository at this point in the history
Summary: On c10s and ELN iproute doesn't create this directory anymore, so we need to ensure it actually exists.

Differential Revision: D54077468

fbshipit-source-id: bca370ff40d7d3c7380be72c452866e0fa8f9bf8
  • Loading branch information
davide125 authored and facebook-github-bot committed Feb 22, 2024
1 parent ceca0ed commit 4306687
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cookbooks/fb_iproute/recipes/rt_protos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@

rt_protos_d_dir = '/etc/iproute2/rt_protos.d'.freeze

directory '/etc/iproute2' do
only_if { node['fb_iproute']['rt_protos_ids'] }
owner 'root'
group 'root'
mode '0755'
action :create
end

directory rt_protos_d_dir do
only_if { node['fb_iproute']['rt_protos_ids'] }
owner 'root'
Expand Down

0 comments on commit 4306687

Please sign in to comment.