X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ec107389c929759806f3e13762bde4378f0494c..a406b373ee9a85b2f79e187b582379326b7b70d2:/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 -%>