# HG changeset patch # User IBBoard # Date 1716658312 -3600 # Node ID 9437c6ffa07c886c58a9cfaa2c3db7c11044b820 # Parent 73e28468a543babee1a2516cd8ce05bd335c4599 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. diff -r 73e28468a543 -r 9437c6ffa07c manifests/templates.pp --- 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