From b932139b4523c719539b9f95f8b847ba37dd5c85 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 1 Apr 2011 11:56:09 -0400 Subject: update ipa init a simple script to update the metatdate et alles that comes from the ipa_init batch call --- install/ui/test/bin/update_ipa_init.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 install/ui/test/bin/update_ipa_init.sh (limited to 'install/ui') diff --git a/install/ui/test/bin/update_ipa_init.sh b/install/ui/test/bin/update_ipa_init.sh new file mode 100755 index 000000000..064f16b9e --- /dev/null +++ b/install/ui/test/bin/update_ipa_init.sh @@ -0,0 +1,21 @@ +#!/bin/bash -x + +FIXTURE_DIR=$1 + +INIT_FILE=$FIXTURE_DIR/ipa_init.json + +usage(){ + echo "$0 {FIXTURE_DIR}" + exit 1 +} + +if [ ! -f $INIT_FILE ] +then + usage + exit 1 +fi + + + +curl -v -H "Content-Type:application/json" -H "Accept:applicaton/json" --negotiate -u : --cacert /etc/ipa/ca.crt -d '{"method":"batch","params":[[ {"method":"json_metadata","params":[[],{}]}, {"method":"i18n_messages","params":[[],{}]}, {"method":"user_find","params":[[],{"whoami":"true","all":"true"}]}, {"method":"env","params":[[],{}]}, {"method":"dns_is_enabled","params":[[],{}]} ],{}],"id":1}' -X POST https://`hostname`/ipa/json | sed 's/[ \t]*$//' > $INIT_FILE + -- cgit