itamae-kitchen / itamae

Configuration management tool inspired by Chef, but simpler and lightweight. Formerly known as Lightchef.

Home Page:https://itamae.kitchen/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`template` should restore mtime if nothing changed

smlx opened this issue · comments

template updates the mtime of a file, even if nothing changes in the file. This can cause warnings such as this from postfix:

postfix/smtpd[19718]: warning: database /etc/aliases.db is older than source file /etc/aliases

It would be good if itamae could cache the mtime of the file, and restore it if the file was not actually modified.

#194 is released in v1.9.3