haveno/scripts/install_qubes/scripts/2.1-haveno-netvm_maker.sh
PromptPunksFauxCough 48e1facb74
install_qubes
2025-02-22 19:16:27 +00:00

39 lines
1.1 KiB
Bash

#!/bin/zsh
## ./haveno-on-qubes/scripts/2.1-haveno-netvm_maker.sh
if [[ $# -ne 1 ]] ; then
printf "\nNo arguments provided!\n\nThis script requires an argument to by provided:\nIP Address of Haveno AppVM\n\nPlease review documentation and try again.\n\nExiting now ...\n"
exit 1
fi
HAVENO_APPVM_IP=$1
## Function to print messages in blue:
echo_blue() {
echo -e "\033[1;34m$1\033[0m"
}
# Function to print error messages in red:
echo_red() {
echo -e "\033[0;31m$1\033[0m"
}
# Prepare Maker Hidden Service
echo_blue "\nConfiguring Hidden Service (Onion) ..."
printf "\n## Haveno-DEX\nConnectionPadding 1\nHiddenServiceDir /var/lib/tor/haveno-dex/\nHiddenServicePort 9999 $HAVENO_APPVM_IP:9999\n\n" >> /usr/local/etc/torrc.d/50_user.conf
## View & Verify Change
echo_blue "\nReview the following output and be certain in matches documentation found in manual guide exactly!\n"
tail /usr/local/etc/torrc.d/50_user.conf
#echo_blue "\nRestarting tor Service ..."
#systemctl restart tor.service
echo_blue "Haveno NetVM configuration complete."
printf "%s \n" "Press [ENTER] to complete ..."
read ans
#exit
poweroff