cryptopool-builders / Multi-Pool-Installer

Ultimate Crypto-Server Setup Installer! Automates most of the tedious tasks of crypto-server setup
https://www.cryptopool.builders
Mozilla Public License 2.0
168 stars 194 forks source link

Yiimp Interface - Daemons tab with auto configuration display bug when coin name ends wit h a "d" #3

Closed moppidoo closed 5 years ago

moppidoo commented 5 years ago

Describe the bug Installed Bitsend via daemonbuilder and the Autogenerated config seemed to have left out a "d", maybe due to confusion since coin name ended with a "d" and script thought it stands for daemon as in most coins

To Reproduce Steps to reproduce the behavior: Install a coin via daemonbuilder and name end with "d"

from the picture below, which can be seen that all references to bitsend (directory or file) became bitsen, actual directories/files generated by daemonbuilder script are correct, just the yiimp display bugged

Screenshots Please add screenshots to help explain your problem. image

Server Information (please complete the following information):

cryptopool-builders commented 5 years ago

Ive update the YiiMP code to resolve this. to fix it, modify the file:

/home/crypto-data/yiimp/site/web/yaamp/modules/site/coin_form.php

change both lines 290 and 380 to read:

$program = substr($coin->program, 0, -1);

Not that I have run in to many of them, but there will have to be another fix for coins that do not have 'd' at all on the coin name. Ill come up with a better solution for those coins.