Skip to content

Commit

Permalink
final wireguard build
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptopool-builders committed Mar 14, 2019
1 parent cce5c92 commit b849b02
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions first_boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ sudo chmod 777 $STORAGE_ROOT/yiimp/site/log/debug.log
# Delete me no longer needed after it runs the first time

sudo rm -r $STORAGE_ROOT/yiimp/first_boot.sh
cd $HOME/multipool/yiimp_single
1 change: 1 addition & 0 deletions motd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ run-parts /etc/update-motd.d/ | sudo tee /etc/motd
' | sudo -E tee /usr/bin/motd >/dev/null 2>&1

sudo chmod +x /usr/bin/motd
cd $HOME/multipool/yiimp_single
1 change: 1 addition & 0 deletions nginx_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ sudo cp -r nginx_confs/nginx.conf /etc/nginx/

restart_service nginx
restart_service php7.2-fpm
cd $HOME/multipool/yiimp_single
22 changes: 22 additions & 0 deletions questions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ case $response in
0)
# Save the global options in $STORAGE_ROOT/yiimp/.yiimp.conf so that standalone
# tools know where to look for data.
if [[ ("$wireguard" == "true") ]]; then
echo 'STORAGE_USER='"${STORAGE_USER}"'
STORAGE_ROOT='"${STORAGE_ROOT}"'
DomainName='"${DomainName}"'
Expand All @@ -212,10 +213,31 @@ UsingSubDomain='"${UsingSubDomain}"'
InstallSSL='"${InstallSSL}"'
CoinPort='"${CoinPort}"'
AutoExchange='"${AutoExchange}"'
DBInternalIP='"${DBInternalIP}"'
# Unless you do some serious modifications this installer will not work with any other repo of yiimp!
YiiMPRepo='https://github.com/cryptopool-builders/yiimp.git'
' | sudo -E tee $STORAGE_ROOT/yiimp/.yiimp.conf >/dev/null 2>&1 ;;

else

echo 'STORAGE_USER='"${STORAGE_USER}"'
STORAGE_ROOT='"${STORAGE_ROOT}"'
DomainName='"${DomainName}"'
StratumURL='"${StratumURL}"'
SupportEmail='"${SupportEmail}"'
PublicIP='"${PublicIP}"'
DBRootPassword='"'"''"${DBRootPassword}"''"'"'
AdminPanel='"${AdminPanel}"'
PanelUserDBPassword='"'"''"${PanelUserDBPassword}"''"'"'
StratumUserDBPassword='"'"''"${StratumUserDBPassword}"''"'"'
UsingSubDomain='"${UsingSubDomain}"'
InstallSSL='"${InstallSSL}"'
CoinPort='"${CoinPort}"'
AutoExchange='"${AutoExchange}"'
# Unless you do some serious modifications this installer will not work with any other repo of yiimp!
YiiMPRepo='https://github.com/cryptopool-builders/yiimp.git'
' | sudo -E tee $STORAGE_ROOT/yiimp/.yiimp.conf >/dev/null 2>&1 ;;
fi
1)

clear
Expand Down
1 change: 1 addition & 0 deletions send_mail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ sudo sed -i '/root:/a '$whoami': '${SupportEmail}'' /etc/aliases
sudo newaliases

sudo adduser $whoami mail
cd $HOME/multipool/yiimp_single
1 change: 1 addition & 0 deletions server_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ echo "source /etc/multipool.conf" | hide_output tee -a ~/.bashrc
echo "source $STORAGE_ROOT/yiimp/.prescreens.start.conf" | hide_output tee -a ~/.bashrc

sudo rm -r $STORAGE_ROOT/yiimp/yiimp_setup
cd $HOME/multipool/yiimp_single
1 change: 1 addition & 0 deletions server_harden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ echo 'net.ipv4.tcp_no_metrics_save = 1' | hide_output sudo tee -a /etc/sysctl.co
echo 'net.core.netdev_max_backlog = 5000' | hide_output sudo tee -a /etc/sysctl.conf

echo Tuning complete...
cd $HOME/multipool/yiimp_single
3 changes: 2 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ fi

# Start the installation.
source menu.sh
source questions.sh
source $HOME/multipool/yiimp_single/.wireguard.install.cnf
if [[ ("$wireguard" == "true") ]]; then
source wireguard.sh
fi
source questions.sh
source system.sh
source db.sh
source web.sh
Expand All @@ -69,3 +69,4 @@ echo You can access your admin panel at, http://${DomainName}/site/${AdminPanel}
echo
echo By default all stratum ports are blocked by the firewall. To allow a port through, from the command prompt type sudo ufw allow port number.
echo Database user names and passwords can be found in $STORAGE_ROOT/yiimp_setup/.my.cnf
exit 0

0 comments on commit b849b02

Please sign in to comment.