Skip to content

Commit

Permalink
Force creation of missing .ethash dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoît Clouet authored and Benoît Clouet committed Jul 22, 2017
1 parent e5cd234 commit 4bce8ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions manifests/makedag.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 4bce8ec

Please sign in to comment.