Commit fb929603 authored by Philippe Caseiro's avatar Philippe Caseiro Committed by Matthieu Lamalle

Fix 241

parent 0bb32534
......@@ -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