Fix network creation
This commit is contained in:
parent
5fabc153ef
commit
6256422ac5
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ function startpod() {
|
|||
|
||||
# check if network is needed
|
||||
if [[ -n $(jq -r .network.name "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/config.json") ]]; then
|
||||
podman network create $(getValueByKey 'PODMAN_DIRECTORY')/${1}/config.json
|
||||
local network="$(jq -r .network.name $(getValueByKey 'PODMAN_DIRECTORY')/${1}/config.json)"
|
||||
podman network create "$network"
|
||||
fi
|
||||
|
||||
podman-compose up -d
|
||||
|
|
Loading…
Reference in a new issue