diff --git a/backuppc/manifests/init.pp b/backuppc/manifests/init.pp index c6bc19e..b33269a 100644 --- a/backuppc/manifests/init.pp +++ b/backuppc/manifests/init.pp @@ -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"],