fix syntax
[mirror/dsa-puppet.git] / modules / ssl / manifests / init.pp
index af909f8..26c8225 100644 (file)
@@ -71,13 +71,14 @@ class ssl {
        }
 
        exec { 'make_new_service_links':
-               command     => 'cp --symbolic-link /etc/ssl/servicecerts/* /etc/ssl/certs',
+               command     => 'cp -f --symbolic-link ../servicecerts/* .',
+               cwd         => '/etc/ssl/certs',
                refreshonly => true,
                notify      => Exec['cleanup_dead_links']
        }
 
        exec { 'cleanup_dead_links':
-               command     => 'find /etc/ssl/certs -mindepth 1 -maxdepth 1 -L -type l -delete',
+               command     => 'find -L /etc/ssl/certs -mindepth 1 -maxdepth 1 -type l -delete',
                refreshonly => true,
                notify      => Exec['c_rehash /etc/ssl/certs']
        }