Skip to content

Commit

Permalink
more path issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptopool-builders committed Mar 14, 2019
1 parent d98f0bf commit f69ea49
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
5 changes: 2 additions & 3 deletions db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
source /etc/functions.sh
source $STORAGE_ROOT/yiimp/.yiimp.conf
source $HOME/multipool/yiimp_single/.wireguard.install.cnf
if [[ ("$wireguard" == "true") ]]; then
source $STORAGE_ROOT/yiimp/.wireguard.conf
fi

echo Installing MariaDB...
MARIADB_VERSION='10.3'
Expand Down Expand Up @@ -97,15 +99,12 @@ sudo mysql -u root -p"${DBRootPassword}" yiimpfrontend --force < 2018-02-coins_g
sudo mysql -u root -p"${DBRootPassword}" yiimpfrontend --force < 2019-03-coins_thepool_life.sql

if [[ ("$wireguard" == "false") ]]; then

sudo sed -i '/max_connections/c\max_connections = 800' /etc/mysql/my.cnf
sudo sed -i '/thread_cache_size/c\thread_cache_size = 512' /etc/mysql/my.cnf
sudo sed -i '/tmp_table_size/c\tmp_table_size = 128M' /etc/mysql/my.cnf
sudo sed -i '/max_heap_table_size/c\max_heap_table_size = 128M' /etc/mysql/my.cnf
sudo sed -i '/wait_timeout/c\wait_timeout = 60' /etc/mysql/my.cnf
sudo sed -i '/max_allowed_packet/c\max_allowed_packet = 64M' /etc/mysql/my.cnf


else
sudo sed -i '/max_connections/c\max_connections = 800' /etc/mysql/my.cnf
sudo sed -i '/thread_cache_size/c\thread_cache_size = 512' /etc/mysql/my.cnf
Expand Down
1 change: 0 additions & 1 deletion first_boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ 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: 0 additions & 1 deletion motd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ 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: 0 additions & 1 deletion nginx_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ sudo cp -r nginx_confs/nginx.conf /etc/nginx/

restart_service nginx
restart_service php7.2-fpm
cd $HOME/multipool/yiimp_single
3 changes: 3 additions & 0 deletions questions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
source /etc/functions.sh
source /etc/multipool.conf
source $HOME/multipool/yiimp_single/.wireguard.install.cnf
if [[ ("$wireguard" == "true") ]]; then
source $STORAGE_ROOT/yiimp/.wireguard.conf
fi

message_box "Ultimate Crypto-Server Setup Installer v1.02" \
"You have choosen to install YiiMP Single Server!
Expand Down
1 change: 0 additions & 1 deletion send_mail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ sudo sed -i '/root:/a '$whoami': '${SupportEmail}'' /etc/aliases
sudo newaliases

sudo adduser $whoami mail
cd $HOME/multipool/yiimp_single
1 change: 0 additions & 1 deletion server_harden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ 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: 3 additions & 0 deletions system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ clear
source /etc/functions.sh
source $STORAGE_ROOT/yiimp/.yiimp.conf
source $HOME/multipool/yiimp_single/.wireguard.install.cnf
if [[ ("$wireguard" == "true") ]]; then
source $STORAGE_ROOT/yiimp/.wireguard.conf
fi

# Set timezone
echo Setting TimeZone to UTC...
Expand Down
4 changes: 3 additions & 1 deletion web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

source /etc/functions.sh
source /etc/multipool.conf
source $STORAGE_ROOT/yiimp/.yiimp.conf
source $HOME/multipool/yiimp_single/.wireguard.install.cnf
if [[ ("$wireguard" == "true") ]]; then
source $STORAGE_ROOT/yiimp/.wireguard.conf
source $STORAGE_ROOT/yiimp/.yiimp.conf
fi

echo Building web file structure and copying files...
cd $STORAGE_ROOT/yiimp/yiimp_setup/yiimp
Expand Down

0 comments on commit f69ea49

Please sign in to comment.