Only use multi-package on *nix
Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
parent
88f7030d1e
commit
b204ea814b
@ -2,7 +2,7 @@
|
||||
# Cookbook:: common
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright:: 2009-2019, Chef Software, Inc.
|
||||
# Copyright:: 2009-2020, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@ -19,7 +19,14 @@
|
||||
|
||||
include_recipe 'postfix::_attributes'
|
||||
|
||||
package node['postfix']['packages']
|
||||
# use multi-package when we can
|
||||
if node['os'] == 'linux'
|
||||
package node['postfix']['packages']
|
||||
else
|
||||
node['postfix']['packages'].each do |pkg|
|
||||
package pkg
|
||||
end
|
||||
end
|
||||
|
||||
package 'procmail' if node['postfix']['use_procmail']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user