First page Back Continue Last page Overview Graphics
Implementation: installfile
We need to take care of many cases:
- if file is mutable, rotate out, install new file as immutable, and record operation in WORKDIR/state/changedfiles
- optionally, install without rotation (overwrite), like in /etc/cron.daily
- if file is mutable but in changedfiles, it's been user modified, skip
- if file is immutable, upgrade getupdates maintained file in place
- or force rotation anyway
- or install a file in place and leave mutable by specifying the md5sum of the intended target (which leaves it alone if the user modified it)
Notes: