diff --git a/README.md b/README.md index 4401624..2c388d5 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,7 @@ Pull requests, comments, issues are welcome. * 0.5.2 - Changed metadata to comply with puppet forge's recommendation. * 0.6.0 - Added a makedag function for pre-generating the DAG (long running operation) * 0.6.1 - Fixed a typing error +* 0.6.2 - Force creation of missing .ethash dir ## License diff --git a/manifests/makedag.pp b/manifests/makedag.pp index c9949e5..bb28d60 100644 --- a/manifests/makedag.pp +++ b/manifests/makedag.pp @@ -6,6 +6,12 @@ String $logdir = $geth::logdir, ) { + file { $ethash_path: + ensure => directory, + owner => $user, + mode => '0755', + } + exec { "geth makedag ${block_number} ${ethash_path} >> ${logdir}/init-dag.log 2>&1": cwd => "/home/${user}", user => $user, diff --git a/metadata.json b/metadata.json index 10c5e72..d890f30 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "clouetb-geth", - "version": "0.6.1", + "version": "0.6.2", "author": "clouetb", "summary": "A simple module for installing go-ethereum.", "license": "GPL-3.0",