EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 31b5fe6c authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

fix registrar test

parent b01069dc
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,10 @@ file_env() {
val="$(< "${!fileVar}")"
fi
cat >> /etc/bash.bashrc <<EOF
export ${var}=${val}
EOF
echo "the value of variable ${var} is set" >&2
# make them also available in preparatory steps until container starts
export ${var}=${val}
export "${var}"="${val}"
unset "$fileVar"
}
......
......@@ -28,7 +28,7 @@ file_env() {
elif [ "${!fileVar:-}" ]; then
val="$(< "${!fileVar}")"
fi
cat >> /root/.profile <<EOF
cat >> /etc/bash.bashrc <<EOF
EOF
echo "the value of variable ${var} is set" >&2
# make them also available in preparatory steps until container starts
......
......@@ -27,11 +27,10 @@ file_env() {
val="$(< "${!fileVar}")"
fi
cat >> /etc/bash.bashrc <<EOF
export ${var}=${val}
EOF
echo "the value of variable ${var} is set" >&2
# make them also available in preparatory steps until container starts
export ${var}=${val}
export "${var}"="${val}"
unset "$fileVar"
}
......
......@@ -5,7 +5,7 @@ echo "inside registrar_test"
IFS=","
while read product; do
docker exec -i $(docker ps -qf "name=emg-pvs_registrar") \
docker exec -e OS_PASSWORD=$OS_PASSWORD -i $(docker ps -qf "name=emg-pvs_registrar") \
python3 /registrar.py \
--objects-prefix $product \
--service-url $SERVICE_URL \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment