From 65ef9509b3eed75a1e6fa0eccb1e9033fb798ae5 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 8 Jan 2012 13:11:49 +0000 Subject: use cp instead of mv, since mv would requires to be able to write in /var/www/bs/data, and since permission are set to 755, this doesn't work. --- modules/buildsystem/manifests/maintdb.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/buildsystem/manifests/maintdb.pp b/modules/buildsystem/manifests/maintdb.pp index 43e65cc9..022aed6b 100644 --- a/modules/buildsystem/manifests/maintdb.pp +++ b/modules/buildsystem/manifests/maintdb.pp @@ -47,7 +47,7 @@ class buildsystem { cron { "update maintdb export": user => $login, - command => "$binpath root get > $dump.new; mv -f $dump.new $dump; grep ' nobody\$' $dump | sed 's/ nobody\$//' > $unmaintained.new; mv -f $unmaintained.new $unmaintained", + command => "$binpath root get > $dump.new; cp -f $dump.new $dump; grep ' nobody\$' $dump | sed 's/ nobody\$//' > $unmaintained.new; cp -f $unmaintained.new $unmaintained", minute => "*/30", require => User[$login], } -- cgit v1.2.1