Commit 7cc078b2 authored by Matthieu Lamalle's avatar Matthieu Lamalle

Merge branch 'fix-241' into 'develop'

Fix 241

See merge request !2
parents 0bb32534 fb929603
......@@ -130,7 +130,13 @@ rm $output/{*.pem,*.json} 2> /dev/null
echo "Get realm keys..."
$kcadm get keys -r $realm >$output/keys.json
[ $? = 0 ] || die "Unable to get realm keys"
if [ $? = 0 ]
then
echo "Unable to get realm keys ... Let's retry in 10s"
sleep 10
$kcadm get keys -r $realm >$output/keys.json
[ $? = 0 ] || die "Unable to get realm keys"
fi
cat $output/keys.json
jq '.keys[] | select(has("publicKey")) | .publicKey ' -r $output/keys.json > $output/pub.tmp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment