diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 14c2810..b274fc3 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -5,7 +5,7 @@ } exec { "install-redmine-plugin-$name": cwd => '/usr/local/share/redmine/plugins/', - command => "unzip ${name}.zip", + command => "rm -rf $name && unzip ${name}.zip", refreshonly => true, subscribe => File["/usr/local/share/redmine/plugins/${name}.zip"] }