Fixed backuppc for puppet 2.6

This commit is contained in:
Ossi Salmi 2011-11-09 13:24:34 +02:00 committed by Timo Mkinen
parent 3a030c6b13
commit 8e386aba9a

View file

@ -132,7 +132,7 @@ class backuppc::server {
}
exec { "generate-backuppc-hosts":
command => '(cat /etc/BackupPC/hosts.in ; find /etc/BackupPC/pc/ -name \*.pl -exec basename {} .pl \; | sed -e "s/$/ 0 adm/") > /etc/BackupPC/hosts',
command => "/bin/sh -c '(cat /etc/BackupPC/hosts.in ; find /etc/BackupPC/pc -name \\*.pl -exec basename {} .pl \\; | sed -e \"s/\$/ 0 adm/\") > /etc/BackupPC/hosts'",
path => "/bin:/usr/bin:/sbin:/usr/sbin",
refreshonly => true,
require => File["/etc/BackupPC/hosts.in"],