X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ec107389c929759806f3e13762bde4378f0494c..1297de4eac0f30da215b909e653515be4e02b14b:/cookbooks/mysql/recipes/default.rb 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"