shinesolutions/puppet-aem-curator

Log files & thread dumps are deleted after provisioning

Closed this issue · 0 comments

  $list_clean_directories = [
  'logs',
  'threaddumps'
  ]

  $list_clean_directories.each | Integer $index, String $clean_directory| {
    exec { "${aem_id}: Cleaning directory ${crx_quickstart_dir}/${clean_directory}/":
      command => "rm -fr ${crx_quickstart_dir}/${clean_directory}/*",
      before  => File["${crx_quickstart_dir}/install/"],
    }
  }

... but it could be that there are useful error messages/information/... in there.

So it is not very desirable to do this.