aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-01-03 00:40:20 +0000
committerNicolas Vigier <boklm@mageia.org>2012-01-03 00:40:20 +0000
commit90846de4ba32aef58bcbb8f9ae1bc3cdab75a89d (patch)
treedb98ca8798c228760269aa128ed8406e10f207fd /modules/buildsystem
parent8f41d3390d1707802e4e597b28f2a0b17df463bb (diff)
downloadpuppet-90846de4ba32aef58bcbb8f9ae1bc3cdab75a89d.tar
puppet-90846de4ba32aef58bcbb8f9ae1bc3cdab75a89d.tar.gz
puppet-90846de4ba32aef58bcbb8f9ae1bc3cdab75a89d.tar.bz2
puppet-90846de4ba32aef58bcbb8f9ae1bc3cdab75a89d.tar.xz
puppet-90846de4ba32aef58bcbb8f9ae1bc3cdab75a89d.zip
use temporary files to update maintdb.txt and unmaintained.txt (#2839)
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/init.pp2
1 files changed, 1 insertions, 1 deletions
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],
}