From f99bc33a28a14313e10f8acdaed44f1dcf69cd91 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sun, 3 Jan 2016 09:44:52 +0100 Subject: [PATCH] blocknotify: remove hardcoded path in sample config do not force to use a non standard binary path, add it to /usr/local/bin or /bin if set in your server $PATH env var. the "make install" output is in /bin --- README.md | 2 +- web/yaamp/modules/site/coin_form.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8abc1fe..f387677 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Look at rc.local, it starts all three backend shells and all stratum processes. All your coin's config files need to blocknotify their corresponding stratum using something like: - blocknotify=/var/stratum/blocknotify yaamp.com:port coinid %s + blocknotify=blocknotify yaamp.com:port coinid %s On the website, go to http://server.com/site/adminRights to login as admin. You have to change it to something different in the code (web/yaamp/modules/site/SiteController.php). A real admin login may be added later, but you can setup a password authentification with your web server, sample for lighttpd: diff --git a/web/yaamp/modules/site/coin_form.php b/web/yaamp/modules/site/coin_form.php index c361b2e..a782589 100644 --- a/web/yaamp/modules/site/coin_form.php +++ b/web/yaamp/modules/site/coin_form.php @@ -239,7 +239,7 @@ if ($coin->id) { echo "gen=0\n"; echo "\n"; echo "alertnotify=echo %s | mail -s \"{$coin->name} alert!\" ".YAAMP_ADMIN_EMAIL."\n"; - echo "blocknotify=/var/stratum/blocknotify ".YAAMP_SITE_URL.":$port {$coin->id} %s\n"; + echo "blocknotify=blocknotify ".YAAMP_SITE_URL.":$port {$coin->id} %s\n"; echo CHtml::closetag("pre"); echo CHtml::tag("hr");