Browse Source

lib_path attribute added

Xabier de Zuazo 11 years ago
parent
commit
70cd28328e
1 changed files with 8 additions and 0 deletions
  1. 8 0
      attributes/default.rb

+ 8 - 0
attributes/default.rb

@@ -2,3 +2,11 @@
 default['dovecot']['user'] = 'dovecot'
 default['dovecot']['group'] = node['dovecot']['user']
 
+case node['platform']
+  when 'redhat','centos','scientific','fedora','suse','amazon' then
+    default['dovecot']['lib_path'] = '/usr/libexec/dovecot'
+  # when 'debian', 'ubuntu' then
+  else
+    default['dovecot']['lib_path'] = '/usr/lib/dovecot'
+end
+