show comparison of env and mysettings at end

This commit is contained in:
Sean Wheller 2019-08-11 16:22:01 +02:00
parent e049916e7a
commit ae76054a4e
4 changed files with 15 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
echo -e "${_GREEN}FUNCTIONS LOADING${_RESET}"
echo -e "${_GREEN}LOADING FUNCTIONS${_RESET}"
function prompt_confirm() {
while true; do
@ -14,7 +14,18 @@ function prompt_confirm() {
}
function show_settings () {
echo "${_CYAN}Settings from loaded environment:${_RESET}"
echo "${_GREEN}Pool URL:${_RESET}: $_POOL_SERVER_URL"
echo "${_GREEN}Pool Port:${_RESET}: $_POOL_SERVER_PORT"
echo "${_GREEN}Recieve Wallet:${_RESET}: $_RECEIVE_WALLET"
echo "${_GREEN}Email Address:${_RESET}: $_EMAIL"
echo "${_GREEN}Worker Identity:${_RESET}: $_API_WORKER_ID"
}
function show_mysettings () {
if [ -f $_WORK_DIR/$_MYSETTINGS_FILE ]; then
load_mysettings
echo "${_CYAN}Settings from mysettings.sh:${_RESET}"
echo "${_CYAN}Settings loaded:${_RESET}"
echo "${_GREEN}Pool URL:${_RESET}: $_POOL_SERVER_URL"
echo "${_GREEN}Pool Port:${_RESET}: $_POOL_SERVER_PORT"

View File

@ -70,4 +70,4 @@ SCREEN=""
. start.sh
echo -e "${_CYAN}INSTALLATION STOPPED${_RESET}"
echo -e "${_CYAN}INSTALLATION COMPLETED${_RESET}"

View File

@ -1,6 +1,6 @@
#!/bin/bash
echo -e "${_GREEN}DEFAULT SETTINGS LOADING${_RESET}"
echo -e "${_GREEN}LOADING DEFAULT SETTINGS${_RESET}"
_EMAIL="miners@prepaidmeters.com"

View File

@ -14,6 +14,7 @@ if ! screen -list | grep -q "$_XMRIG_SCREEN"; then
# Call functions
show_settings
show_mysettings
start_xmrig
# List screen