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