From 90846de4ba32aef58bcbb8f9ae1bc3cdab75a89d Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 3 Jan 2012 00:40:20 +0000 Subject: use temporary files to update maintdb.txt and unmaintained.txt (#2839) --- modules/buildsystem/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index b8def670..62e2f35e 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -217,7 +217,7 @@ class buildsystem { cron { "update maintdb export": user => $maintdb_login, - command => "$maintdb_binpath root get > $maintdb_dump; grep ' nobody\$' $maintdb_dump | sed 's/ nobody\$//' > $maintdb_unmaintained", + command => "$maintdb_binpath root get > $maintdb_dump.new; mv -f $maintdb_dump.new $maintdb_dump; grep ' nobody\$' $maintdb_dump | sed 's/ nobody\$//' > $maintdb_unmaintained.new; mv -f $maintdb_unmaintained.new $maintdb_unmaintained", minute => "*/30", require => User[$maintdb_login], } -- cgit v1.2.1