Skip to content

Commit

Permalink
single menu fix
Browse files Browse the repository at this point in the history
single menu fix
  • Loading branch information
cryptopool-builders committed Jun 19, 2019
1 parent efbcc90 commit 9529a5b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

source /etc/functions.sh

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

if [ $RESULT = 1 ]
Expand Down
14 changes: 11 additions & 3 deletions questions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ if [[ ("$wireguard" == "true") ]]; then
source $STORAGE_ROOT/yiimp/.wireguard.conf
fi

if [[ ("$wireguard" == "true") ]]; then
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.
"You have choosen to install YiiMP Single Server with WireGuard!
\n\nThis option will install all componets of YiiMP on a single server along with WireGuard so you can easily add additional servers in the future.
\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!"

else
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!"
fi
dialog --title "Using Sub-Domain" \
--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=$?
Expand Down

0 comments on commit 9529a5b

Please sign in to comment.