Add network configuration option in expert mode menu

Introduced a new menu option for setting network configurations when in expert mode. Updated menu handling logic to include this new option and integrated the corresponding function call.
This commit is contained in:
2024-10-24 00:58:27 +02:00
parent 1cc718832a
commit 5ceddb1c71

View File

@ -3112,6 +3112,8 @@ function showTraefik() {
# delete traefik container
[ -f "${VDM_REPO_PATH}/traefik/docker-compose.yml" ] &&
menu_options+=("delete" "Delete Traefik") && i=$((i + 1))
# set network if not set
isExpert && menu_options+=("network" "Set Network") && i=$((i + 1))
# Quit Octoleo Program
menu_options+=("quit" "Quit ${PROGRAM_NAME}")
# get the selection
@ -3139,12 +3141,15 @@ function showTraefik() {
"delete")
deleteContainer 'traefik'
;;
"network")
setNetworks
;;
"quit") quitProgram ;;
esac
# menu loop
case $CHOICE in
"setup" | "edit" | "enable" | "disable" | "delete")
"setup" | "edit" | "enable" | "disable" | "delete" | "network")
showTraefik
;;
esac