X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ec107389c929759806f3e13762bde4378f0494c..e847b156af79e857466b8ca0f51d68ef69a6dd01:/cookbooks/mysql/recipes/default.rb?ds=inline diff --git a/cookbooks/mysql/recipes/default.rb b/cookbooks/mysql/recipes/default.rb index 00334af00..aad3a7683 100644 --- a/cookbooks/mysql/recipes/default.rb +++ b/cookbooks/mysql/recipes/default.rb @@ -46,6 +46,7 @@ template "/etc/apparmor.d/local/usr.sbin.mysqld" do group "root" mode "644" notifies :restart, "service[apparmor]" + only_if { ::Dir.exist?("/sys/kernel/security/apparmor") } end package "libdbd-mysql-perl"