Add support for almalinux10 (#210)
This commit is contained in:
@@ -2,6 +2,12 @@ recipient_canonical =
|
||||
case os.family
|
||||
when 'suse'
|
||||
'/etc/postfix/recipient_canonical.lmdb'
|
||||
when 'redhat'
|
||||
if os.release.to_i >= 10
|
||||
'/etc/postfix/recipient_canonical'
|
||||
else
|
||||
'/etc/postfix/recipient_canonical.db'
|
||||
end
|
||||
else
|
||||
'/etc/postfix/recipient_canonical.db'
|
||||
end
|
||||
|
||||
@@ -13,7 +13,9 @@ control 'sasl_auth_multiple' do
|
||||
end
|
||||
end
|
||||
|
||||
db_type = ((os.family == 'redhat' && os.release.to_i >= 10) || (os.family == 'suse' && os.release.to_i >= 15)) ? 'lmdb' : 'hash'
|
||||
|
||||
describe postfix_conf '/etc/postfix/main.cf' do
|
||||
its('smtp_sasl_password_maps') { should eq 'hash:/etc/postfix/sasl_passwd' }
|
||||
its('smtp_sasl_password_maps') { should eq "#{db_type}:/etc/postfix/sasl_passwd" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,7 +11,9 @@ control 'sasl_auth_none' do
|
||||
end
|
||||
end
|
||||
|
||||
db_type = ((os.family == 'redhat' && os.release.to_i >= 10) || (os.family == 'suse' && os.release.to_i >= 15)) ? 'lmdb' : 'hash'
|
||||
|
||||
describe postfix_conf '/etc/postfix/main.cf' do
|
||||
its('smtp_sasl_password_maps') { should eq 'hash:/etc/postfix/sasl_passwd' }
|
||||
its('smtp_sasl_password_maps') { should eq "#{db_type}:/etc/postfix/sasl_passwd" }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -12,7 +12,9 @@ control 'sasl_auth_one' do
|
||||
end
|
||||
end
|
||||
|
||||
db_type = ((os.family == 'redhat' && os.release.to_i >= 10) || (os.family == 'suse' && os.release.to_i >= 15)) ? 'lmdb' : 'hash'
|
||||
|
||||
describe postfix_conf '/etc/postfix/main.cf' do
|
||||
its('smtp_sasl_password_maps') { should eq 'hash:/etc/postfix/sasl_passwd' }
|
||||
its('smtp_sasl_password_maps') { should eq "#{db_type}:/etc/postfix/sasl_passwd" }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user