From d4190b4144f1332cbce3b55a4dd4c09318ef129c Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Fri, 1 Mar 2024 13:37:09 +0100 Subject: [PATCH] wip --- utils/pull | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/pull b/utils/pull index d44308e..149879f 100644 --- a/utils/pull +++ b/utils/pull @@ -23,8 +23,6 @@ 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"