add basic prompts for merging nets

This commit is contained in:
Mishalabdullah
2024-05-25 12:43:54 +05:30
parent dac0edf3d3
commit 9bbe63d0b1

View File

@@ -162,6 +162,21 @@ install_bpp_protocol_server(){
echo "Protocol server BPP installation successful" echo "Protocol server BPP installation successful"
} }
mergingNetworks(){
echo -e "1. Merge Two Different Registries \n2. Merge Multiple Registries into a Super Registry"
read -p "Enter your choice: " merging_network
if [[ $merging_network == 1 ]]; then
echo "Merging Two Different Registries"
elif [[ $merging_network == 2 ]]; then
echo "Merging Multiple Registries into a Super Registry"
else
echo "Invalid option. Please restart the script and select a valid option."
exit 1
fi
}
# Function to install BPP Protocol Server with Sandbox # Function to install BPP Protocol Server with Sandbox
install_bpp_protocol_server_with_sandbox(){ install_bpp_protocol_server_with_sandbox(){
start_support_services start_support_services
@@ -292,14 +307,7 @@ boldGreen="\e[1m\e[92m"
reset="\e[0m" reset="\e[0m"
if [[ $choice -eq 3 ]]; then if [[ $choice -eq 3 ]]; then
echo "Installing all components on the local machine" echo "Determining the platforms available based on the initial choice"
install_package
install_registry
install_gateway
install_bap_protocol_server
install_bpp_protocol_server_with_sandbox
else
# Determine the platforms available based on the initial choice
platforms=("Gateway" "BAP" "BPP") platforms=("Gateway" "BAP" "BPP")
[ "$choice" -eq 2 ] && platforms=("Registry" "${platforms[@]}") # Add Registry for new network setups [ "$choice" -eq 2 ] && platforms=("Registry" "${platforms[@]}") # Add Registry for new network setups
@@ -319,6 +327,10 @@ else
echo "Invalid option. Please restart the script and select a valid option." echo "Invalid option. Please restart the script and select a valid option."
exit 1 exit 1
fi fi
elif [[ $choice -eq 4 ]]; then
echo "Determining the platforms available based on the initial choice"
mergingNetworks
fi fi
echo "Process complete. Thank you for using Beckn-ONIX!" echo "Process complete. Thank you for using Beckn-ONIX!"