This commit is contained in:
LinuxSquare 2024-03-01 13:55:47 +01:00
parent aa3b81913d
commit 0446e1eae1

View file

@ -29,7 +29,7 @@ function pullpod() {
fi fi
for serviceIP in $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" 'container.serviceIPs[]'); do for serviceIP in $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" 'container.serviceIPs[]'); do
if [[ -z $(echo "$section" | grep "$serviceIP") ]]; then if [[ -z $(echo "$section" | grep "$serviceIP") ]]; then
sed "/^$(echo "$section" | tail -n1)/i\ \ \ \ \ \ - $serviceIP" "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml" sed -i "/^$(echo "$section" | tail -n1)/i\ \ \ \ \ \ - $serviceIP" "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml"
fi fi
done done
fi fi