wip
This commit is contained in:
parent
e11b0b7ba2
commit
1b33823464
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ function pullpod() {
|
|||
|
||||
if [[ $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" 'container.hasServiceIPs') == true ]]; then
|
||||
local section=$(sed ''"$(cat $(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml | nl -ba | grep %% $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} 'container.name') start %% | awk '{print $1}')"','"$(cat $(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml | nl -ba | grep %% $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} 'container.name') end %% | awk '{print $1}')"'!d' "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml")
|
||||
echo "$section"
|
||||
exit 0
|
||||
local hasPorts=$(echo "$section" | grep "ports")
|
||||
if [[ -z "$hasPorts" ]]; then
|
||||
sed -i "/^$(echo "$section" | tail -n1)/i\ \ \ \ ports:" "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml"
|
||||
|
|
Loading…
Reference in a new issue