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:
@ -3112,6 +3112,8 @@ function showTraefik() {
|
|||||||
# delete traefik container
|
# delete traefik container
|
||||||
[ -f "${VDM_REPO_PATH}/traefik/docker-compose.yml" ] &&
|
[ -f "${VDM_REPO_PATH}/traefik/docker-compose.yml" ] &&
|
||||||
menu_options+=("delete" "Delete Traefik") && i=$((i + 1))
|
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
|
# Quit Octoleo Program
|
||||||
menu_options+=("quit" "Quit ${PROGRAM_NAME}")
|
menu_options+=("quit" "Quit ${PROGRAM_NAME}")
|
||||||
# get the selection
|
# get the selection
|
||||||
@ -3139,12 +3141,15 @@ function showTraefik() {
|
|||||||
"delete")
|
"delete")
|
||||||
deleteContainer 'traefik'
|
deleteContainer 'traefik'
|
||||||
;;
|
;;
|
||||||
|
"network")
|
||||||
|
setNetworks
|
||||||
|
;;
|
||||||
"quit") quitProgram ;;
|
"quit") quitProgram ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# menu loop
|
# menu loop
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
"setup" | "edit" | "enable" | "disable" | "delete")
|
"setup" | "edit" | "enable" | "disable" | "delete" | "network")
|
||||||
showTraefik
|
showTraefik
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user