Fix network creation

This commit is contained in:
LinuxSquare 2023-12-23 13:25:20 +01:00
parent 5fabc153ef
commit 6256422ac5

View file

@ -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