I have to following lines:
execute "hostname -f >> /etc/mail/local-host-names" do command "hostname -f >> /etc/mail/local-host-names" end
I would like to add a condition, in case the hostname already exists in the file and the command should not add again the hostname in the file.
The /etc/mail/local-host-names might contain other hostname, overwriting is not a solution.
Thank you!