X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ec107389c929759806f3e13762bde4378f0494c..5bb7bf7aa78aa8bc9876f3ec3502572f4b6809d3:/cookbooks/mysql/templates/default/apparmor.erb?ds=sidebyside diff --git a/cookbooks/mysql/templates/default/apparmor.erb b/cookbooks/mysql/templates/default/apparmor.erb index 1a0f6574b..9239e880a 100644 --- a/cookbooks/mysql/templates/default/apparmor.erb +++ b/cookbooks/mysql/templates/default/apparmor.erb @@ -1,4 +1,4 @@ # DO NOT EDIT - This file is being maintained by Chef -<% if node[:mysql][:settings][:mysqld][:secure_file_priv] -%> +<% if node[:mysql][:settings][:mysqld]&.dig(:secure_file_priv) -%> <%= node[:mysql][:settings][:mysqld][:secure_file_priv] %>/* rw, <% end -%>