X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssl%2Fmanifests%2Finit.pp;h=26c82252cf690d8320a784254505db15c757e266;hb=cae383ca373cb601bb4a8034965a599713f5c0a3;hp=af909f869dd7c621ca747129a6f2c14b97283288;hpb=2f29af86b18f40bd4d62f108536e618ac64a59a0;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssl/manifests/init.pp b/modules/ssl/manifests/init.pp index af909f869..26c82252c 100644 --- a/modules/ssl/manifests/init.pp +++ b/modules/ssl/manifests/init.pp @@ -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'] }