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
|
||||
[ -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
|
||||
|
Reference in New Issue
Block a user