This commit is contained in:
LinuxSquare 2024-01-11 19:46:16 +01:00
parent 15aeff377c
commit dc9273b0d5

View file

@ -13,8 +13,8 @@ function pullpod() {
if [[ ! -d "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" ]]; then
git clone "$(getValueByKey 'GIT_REPOSITORY')/${1}.git" "$(getValueByKey 'PODMAN_DIRECTORY')/${1}"
if [[ $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" '.container.hasEnvVars' ) == true ]]; then
for i in $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" '.container.envVars[]'); do
if [[ $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" 'container.hasEnvVars' ) == true ]]; then
for i in $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" 'container.envVars[]'); do
read -p "Please enter a value for '$i': " $(echo $i)
export $(echo $i)
sed "s/$(echo $i)/$(echo $i): $(printenv | grep $i | cut -d= -f2)/g"