X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ec107389c929759806f3e13762bde4378f0494c..155837c1471991d47195869b6359325a17cb335e:/cookbooks/mysql/templates/default/apparmor.erb 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 -%>