changeset 473:9437c6ffa07c

Fix hg dirstate change by changing cron user Any sites with changes that didn't get added to the `dirstate` (e.g. by `hg prompt`) will result in the next `hg` command rebuilding the dirstate under that owner. If the `hg-check-status` command runs as root then we end up with a root-owned dirstate. This most frequently happened on BDStrike.co.uk because of Wordpress auto-updates that the check found first.
author IBBoard <dev@ibboard.co.uk>
date Sat, 25 May 2024 18:31:52 +0100
parents 73e28468a543
children 28d327443c45
files manifests/templates.pp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Tue May 21 20:15:05 2024 +0100
+++ b/manifests/templates.pp	Sat May 25 18:31:52 2024 +0100
@@ -1110,6 +1110,7 @@
 	# Notify of uncommitted files
 	cron { 'check-mercurial-committed':
 		command => "/usr/local/bin/check-hg-status",
+		user => $defaultusers::default_user,
 		hour => '4',
 		minute => '20',
 		weekday => '0-6/3', #Sunday, Wednesday and Saturday morning