Commit Graph

7 Commits

Author SHA1 Message Date
78e9c26db5 hooks/post-merge: Use touch -t, not --date
The former is better supported and can be given a more constrained input.
2021-09-22 21:25:16 +01:00
692e74e329 hooks/post-merge: Skip time updates for directories
This will erroneously lead to synchronization for the entire tree.
2021-09-19 17:42:22 +01:00
377ad0e89b hooks/post-merge: Don't delete .env files
These are required for active services, and can cause issues if deleted
in certain cases.
2021-09-12 22:20:04 +01:00
4f5c2a3a90 hooks/post-merge: Set file timestamps for updates
Partial updates require that source files have appropriate timestamps,
which Git does not set in any special way by default. Thus, before
attempting to update files in-place, we set source timestamps based on
last commit time, which is the effective update time in any case.
2021-09-12 22:08:51 +01:00
67e8a28b8f Correct issues with 'post-merge' hook
The use of 'rsync' is not compatible with the SELinux setup used in
CoreOS, and thus simple use of 'cp' and 'rm' is required.
2021-09-08 18:29:54 +01:00
253deb7176 hooks/post-merge: Fix incorrect ROOTDIR directive 2021-09-07 22:21:32 +01:00
231a6f529b Add automated update service, 'post-merge' hook
This allows for semi-unattended updates for home-server configuration
for managed systems, and is run once every hour by default.
2021-09-07 21:45:25 +01:00