diff --git a/menu.sh b/menu.sh index b085f22..6ac12aa 100644 --- a/menu.sh +++ b/menu.sh @@ -7,7 +7,7 @@ source /etc/functions.sh -RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.83" --menu "Choose one" -1 60 6 \ +RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.84" --menu "Choose one" -1 60 6 \ ' ' "- For small private pools -" \ 1 "YiiMP - Single Server" \ ' ' "- If you plan on adding more servers later -" \ diff --git a/start.sh b/start.sh index ee944c2..a38e306 100644 --- a/start.sh +++ b/start.sh @@ -49,7 +49,7 @@ source nginx_upgrade.sh source web.sh source stratum.sh source daemon.sh -if [[ ("$UsingDomain" == "Yes") ]]; then +if [[ ("$UsingDomain" == "yes") ]]; then source send_mail.sh fi source server_cleanup.sh @@ -59,7 +59,7 @@ source $STORAGE_ROOT/yiimp/.yiimp.conf clear -if [[ ("$UsingDomain" == "Yes") ]]; then +if [[ ("$UsingDomain" == "yes") ]]; then echo -e "Installation of your YiiMP single server is now completed." echo -e "You $RED*MUST REBOOT*$COL_RESET the machine to finalize the machine updates and folder permissions! $MAGENTA YiiMP will not function until a reboot is performed!$COL_RESET" echo diff --git a/ubuntu/addport b/ubuntu/addport index 93b4226..16d4a2a 100644 --- a/ubuntu/addport +++ b/ubuntu/addport @@ -77,6 +77,9 @@ if [ -f $STORAGE_ROOT/yiimp/site/stratum/config/$coinsymbollower.$coinalgo.conf fi else # Since this is a new symbol we are going to add it to the other conf files first. +# First we need to check if this is the first time addport has been ran +files=(*.$coinalgo.conf) +if [ -e "${files[0]}" ]; then for r in *.$coinalgo.conf; do if ! grep -Fxq "exclude = ${coinsymbol}" "$r"; then sed -i -e '$a\ @@ -84,6 +87,7 @@ for r in *.$coinalgo.conf; do exclude = '${coinsymbol}'' "$r" fi done +fi # Copy the default algo.conf to the new symbol.algo.conf cp -r $coinalgo.conf $coinsymbollower.$coinalgo.conf # Insert the port in to the new symbol.algo.conf