<commit_before>if platform_family?('debian')
    package "postfix" do
        action [:install, :upgrade]
    end
    
    service "postfix" do
        supports [:restart]
    end
    
    template "/etc/postfix/main.cf" do
        source "postfix.erb"
        owner "root"
        mode "0644"
        variables(
            :hostname => node['dotfiles']['kdeploy']['hostname']+"."+node['postfix']['domain']
        )
        notifies :restart, "service[postfix]"
    end
    
    script "fix mailname" do
        interpreter "bash"
        user "root"
        code <<-EOH
            echo "#{node['dotfiles']['kdeploy']['hostname']+"."+node['postfix']['domain']}" > /etc/mailname
        EOH
    end
end<commit_msg>changed script name postfix mailname<commit_after>if platform_family?('debian')
    package "postfix" do
        action [:install, :upgrade]
    end
    
    service "postfix" do
        supports [:restart]
    end
    
    template "/etc/postfix/main.cf" do
        source "postfix.erb"
        owner "root"
        mode "0644"
        variables(
            :hostname => node['dotfiles']['kdeploy']['hostname']+"."+node['postfix']['domain']
        )
        notifies :restart, "service[postfix]"
    end
    
    script "use correct mailname" do
        interpreter "bash"
        user "root"
        code <<-EOH
            echo "#{node['dotfiles']['kdeploy']['hostname']+"."+node['postfix']['domain']}" > /etc/mailname
        EOH
    end
end
{'fraction_non_alphanumeric': 0.151742993848257, 'fraction_numerical': 0.005468215994531784, 'mean_word_length': 2.1965065502183405, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4581689', 'n_tokens_mistral': 462, 'n_tokens_neox': 453, 'n_words': 98}