mirror of
https://github.com/lalanza808/xmr.sh.git
synced 2025-05-11 02:14:57 -04:00
Add network output
This commit is contained in:
parent
05fb2e83f3
commit
1d641da19b
1 changed files with 6 additions and 3 deletions
9
install
9
install
|
@ -184,12 +184,14 @@ configure_network() {
|
||||||
"testnet")
|
"testnet")
|
||||||
NETWORK="testnet"
|
NETWORK="testnet"
|
||||||
sed -i "s/MONEROD_P2P_PORT=.*/MONEROD_P2P_PORT=28080/g" .env
|
sed -i "s/MONEROD_P2P_PORT=.*/MONEROD_P2P_PORT=28080/g" .env
|
||||||
sed -i "'/MONEROD_EXTRA_PARAMS/s/$/ --testnet/g' docker-compose.yml" .env
|
sed -i "/MONEROD_EXTRA_PARAMS/s/$/ --testnet/g" .env
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
"stagenet")
|
"stagenet")
|
||||||
NETWORK="stagenet"
|
NETWORK="stagenet"
|
||||||
sed -i "s/MONEROD_P2P_PORT=.*/MONEROD_P2P_PORT=38080/g" .env
|
sed -i "s/MONEROD_P2P_PORT=.*/MONEROD_P2P_PORT=38080/g" .env
|
||||||
sed -i "'/MONEROD_EXTRA_PARAMS/s/$/ --stagenet/g' docker-compose.yml" .env
|
sed -i "/MONEROD_EXTRA_PARAMS/s/$/ --stagenet/g" .env
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
*) echo "Invalid network choice!" ;;
|
*) echo "Invalid network choice!" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -307,7 +309,7 @@ start_xmrsh() {
|
||||||
check_return $?
|
check_return $?
|
||||||
docker-compose up -d >>"${XMRSH_LOG_FILE}" 2>&1
|
docker-compose up -d >>"${XMRSH_LOG_FILE}" 2>&1
|
||||||
check_return $?
|
check_return $?
|
||||||
if [ $ENABLE_TOR = true ]; then
|
if [[ $ENABLE_TOR == true ]]; then
|
||||||
sleep 3
|
sleep 3
|
||||||
ONION=$(docker logs tor 2>&1 | grep Entrypoint | cut -d " " -f 8)
|
ONION=$(docker logs tor 2>&1 | grep Entrypoint | cut -d " " -f 8)
|
||||||
fi
|
fi
|
||||||
|
@ -337,6 +339,7 @@ completed() {
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo -e " ${Red}┌───────────────────────────────────────────────────────────────────────────[info]──"
|
echo -e " ${Red}┌───────────────────────────────────────────────────────────────────────────[info]──"
|
||||||
|
echo -e " ${Red}│${Stat} Network: ${StatInfo}${NETWORK}"
|
||||||
echo -e " ${Red}│${Stat} URL: ${StatInfo}https://${HOST}${PORT_SUFF}"
|
echo -e " ${Red}│${Stat} URL: ${StatInfo}https://${HOST}${PORT_SUFF}"
|
||||||
if [ "$ENABLE_EXPLORER" = true ]; then
|
if [ "$ENABLE_EXPLORER" = true ]; then
|
||||||
echo -e " ${Red}│${Stat} Explorer URL: ${StatInfo}https://${HOST}${PORT_SUFF}/explorer"
|
echo -e " ${Red}│${Stat} Explorer URL: ${StatInfo}https://${HOST}${PORT_SUFF}/explorer"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue