Check if network is needed
This commit is contained in:
parent
6d5d0f9649
commit
5fabc153ef
1 changed files with 7 additions and 1 deletions
|
@ -36,7 +36,13 @@ function startpod() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$(getValueByKey 'PODMAN_DIRECTORY')/${1}"
|
cd "$(getValueByKey 'PODMAN_DIRECTORY')/${1}"
|
||||||
podman-compose up
|
|
||||||
|
# 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
|
||||||
|
fi
|
||||||
|
|
||||||
|
podman-compose up -d
|
||||||
}
|
}
|
||||||
|
|
||||||
function stoppod() {
|
function stoppod() {
|
||||||
|
|
Loading…
Reference in a new issue