Skip to content

Commit

Permalink
Some updates
Browse files Browse the repository at this point in the history
Some updates
  • Loading branch information
cryptopool-builders committed Mar 21, 2020
1 parent 8ef94c0 commit 49fc724
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
18 changes: 18 additions & 0 deletions daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,24 @@ cd $STORAGE_ROOT/yiimp/yiimp_setup/tmp
sudo rm -r v20181101.zip bls-signatures-20181101
echo -e "$GREEN bls-signatures Completed...$COL_RESET"

echo -e " Building blocknotify.sh...$COL_RESET"
if [[ ("$wireguard" == "true") ]]; then
source $STORAGE_ROOT/yiimp/.wireguard.conf
echo '#####################################################
# Created by cryptopool.builders for crypto use...
#####################################################
#!/bin/bash
blocknotify '""''"${DBInternalIP}"''""':$1 $2 $3' | sudo -E tee /usr/bin/blocknotify.sh >/dev/null 2>&1
sudo chmod +x /usr/bin/blocknotify.sh
else
echo '#####################################################
# Created by cryptopool.builders for crypto use...
#####################################################
#!/bin/bash
blocknotify 127.0.0.1:$1 $2 $3' | sudo -E tee /usr/bin/blocknotify.sh >/dev/null 2>&1
sudo chmod +x /usr/bin/blocknotify.sh
fi

echo
echo -e "$GREEN Daemon setup completed...$COL_RESET"

Expand Down
2 changes: 1 addition & 1 deletion menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

source /etc/functions.sh

RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.85" --menu "Choose one" -1 60 6 \
RESULT=$(dialog --stdout --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.86" --menu "Choose one" -1 60 6 \
' ' "- For small private pools -" \
1 "YiiMP - Single Server" \
' ' "- If you plan on adding more servers later -" \
Expand Down
6 changes: 4 additions & 2 deletions system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ curl git sudo coreutils pollinate unzip unattended-upgrades cron \
pwgen libgmp3-dev libmysqlclient-dev libcurl4-gnutls-dev \
libkrb5-dev libldap2-dev libidn11-dev gnutls-dev librtmp-dev \
build-essential libtool autotools-dev automake pkg-config libevent-dev bsdmainutils libssl-dev \
automake cmake gnupg2 ca-certificates lsb-release nginx certbot
automake cmake gnupg2 ca-certificates lsb-release nginx certbot libsodium-dev default-libmysqlclient-dev \
libnghttp2-dev librtmp-dev libssh2-1 libssh2-1-dev libldap2-dev libidn11-dev libpsl-dev libkrb5-dev
else
apt_install php7.3-fpm php7.3-opcache php7.3-fpm php7.3 php7.3-common php7.3-gd \
php7.3-mysql php7.3-imap php7.3-cli php7.3-cgi \
Expand All @@ -164,7 +165,8 @@ curl git sudo coreutils pollinate unzip unattended-upgrades cron \
pwgen libgmp3-dev libmysqlclient-dev libcurl4-gnutls-dev \
libkrb5-dev libldap2-dev libidn11-dev gnutls-dev librtmp-dev \
build-essential libtool autotools-dev automake pkg-config libevent-dev bsdmainutils libssl-dev \
libpsl-dev libnghttp2-dev automake cmake gnupg2 ca-certificates lsb-release nginx certbot
libpsl-dev libnghttp2-dev automake cmake gnupg2 ca-certificates lsb-release nginx certbot libsodium-dev default-libmysqlclient-dev \
libnghttp2-dev librtmp-dev libssh2-1 libssh2-1-dev libldap2-dev libidn11-dev libpsl-dev libkrb5-dev
fi

# ### Suppress Upgrade Prompts
Expand Down
8 changes: 6 additions & 2 deletions web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ sudo sed -i 's/service $webserver start/sudo service $webserver start/g' $STORAG
sudo sed -i 's/service nginx stop/sudo service nginx stop/g' $STORAGE_ROOT/yiimp/site/web/yaamp/modules/thread/CronjobController.php

if [[ ("$wireguard" == "true") ]]; then
sudo sed -i '/# onlynet=ipv4/i\ echo "rpcallowip='${DBInternalIP}'\\n";' $STORAGE_ROOT/yiimp/site/web/yaamp/modules/site/coin_form.php
sudo sed -i "s|blocknotify=blocknotify 127.0.0.1|blocknotify=blocknotify ${DBInternalIP}|g" $STORAGE_ROOT/yiimp/site/web/yaamp/modules/site/coin_form.php
#Set Insternal IP to .0/26
internalrpcip=$DBInternalIP
internalrpcip="${DBInternalIP::-1}"
internalrpcip="${internalrpcip::-1}"
internalrpcip=$internalrpcip.0/26
sudo sed -i '/# onlynet=ipv4/i\ echo "rpcallowip='${internalrpcip}'\\n";' $STORAGE_ROOT/yiimp/site/web/yaamp/modules/site/coin_form.php
fi

echo -e "$GREEN Web build complete...$COL_RESET"
Expand Down

0 comments on commit 49fc724

Please sign in to comment.