Skip to content

Commit

Permalink
menu updates
Browse files Browse the repository at this point in the history
menu updates
  • Loading branch information
cryptopool-builders committed Jun 19, 2019
1 parent d23c14c commit efbcc90
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
8 changes: 4 additions & 4 deletions daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ sudo rm -r db-4.8.30.NC.tar.gz db-4.8.30.NC

echo Building Berkeley 5.3, this may take several minutes...
sudo mkdir -p $STORAGE_ROOT/berkeley/db5/
hide_output sudo wget 'http://download.oracle.com/berkeley-db/db-5.3.28.tar.gz'
hide_output sudo tar -xzvf db-5.3.28.tar.gz
cd db-5.3.28/build_unix/
hide_output sudo wget 'http://download.oracle.com/berkeley-db/db-5.1.29.tar.gz'
hide_output sudo tar -xzvf db-5.1.29.tar.gz
cd db-5.1.29/build_unix/
hide_output sudo ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$STORAGE_ROOT/berkeley/db5/
hide_output sudo make install
cd $STORAGE_ROOT/yiimp/yiimp_setup/tmp
sudo rm -r db-5.3.28.tar.gz db-5.3.28
sudo rm -r db-5.1.29.tar.gz db-5.1.29

echo Building OpenSSL 1.0.2g, this may take several minutes...
cd $STORAGE_ROOT/yiimp/yiimp_setup/tmp
Expand Down
9 changes: 5 additions & 4 deletions menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@

source /etc/functions.sh

RESULT=$(dialog --stdout --title "Ultimate Crypto-Server Setup Installer v1.30" --menu "Choose one" -1 60 3 \
RESULT=$(dialog --stdout --nocancel --default-item 1 --title "Ultimate Crypto-Server Setup Installer v1.31" --menu "Choose one" -1 60 5 \
' ' "- For small private pools -" \
1 "YiiMP - Single Server" \
' ' "- If you plan on adding more servers later -"
2 "YiiMP - Single Server with WireGuard" \
3 Exit)
3 Exit 2>&1 > /dev/tty)
if [ $RESULT = ]
then
exit ;
bash $(basename $0) && exit;
fi


if [ $RESULT = 1 ]
then
clear;
Expand Down
10 changes: 7 additions & 3 deletions questions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ fi
message_box "Ultimate Crypto-Server Setup Installer" \
"You have choosen to install YiiMP Single Server!
\n\nThis option will install all componets of YiiMP on a single server.
\n\nPlease make sure any domain name or sub domain names are pointed to this servers IP prior to running this installer.
\n\nAfter answering the following questions, setup will be automated.
\n\nNOTE: If installing on a system with less then 8 GB of RAM you may experience system issues!"

dialog --title "Using Sub-Domain" \
--yesno "Are you using a sub-domain for the main website domain? Example pool.example.com?" 7 60
--yesno "Are you using a sub-domain for the main website domain? Example pool.example.com? Make sure the DNS is updated!" 7 60
response=$?
case $response in
0) UsingSubDomain=yes;;
Expand All @@ -26,7 +27,7 @@ case $response in
esac

dialog --title "Install SSL" \
--yesno "Would you like the system to install SSL automatically?" 7 60
--yesno "Would you like the system to install SSL automatically? If just using the server IP you MUST select NO!" 7 60
response=$?
case $response in
0) InstallSSL=yes;;
Expand Down Expand Up @@ -57,6 +58,8 @@ DEFAULT_DomainName=$(get_publicip_from_web_service 4 || get_default_privateip 4)
input_box "Domain Name" \
"Enter your domain name. If using a subdomain enter the full domain as in pool.example.com
\n\nDo not add www. to the domain name.
\n\nMake sure the domain is pointed to this server before continuing!
\n\nIf only using the server IP, enter the IP only!
\n\nDomain Name:" \
${DEFAULT_DomainName} \
DomainName
Expand All @@ -72,6 +75,7 @@ DEFAULT_StratumURL=stratum.${DomainName}
input_box "Stratum URL" \
"Enter your stratum URL. It is recommended to use another subdomain such as stratum.${DomainName}
\n\nDo not add www. to the domain name.
\n\nIf only using the server IP, enter the IP only!
\n\nStratum URL:" \
${DEFAULT_StratumURL} \
StratumURL
Expand Down Expand Up @@ -185,7 +189,7 @@ Domain Name : ${DomainName}
Stratum URL : ${StratumURL}
System Email : ${SupportEmail}
Your Public IP : ${PublicIP}
Admin Location : ${AdminPanel}" 20 60
Admin Location : ${AdminPanel}" 15 60


# Get exit status
Expand Down

0 comments on commit efbcc90

Please sign in to comment.