summaryrefslogtreecommitdiffstats
path: root/scripts/id_messages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/id_messages.sh')
-rwxr-xr-xscripts/id_messages.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/id_messages.sh b/scripts/id_messages.sh
new file mode 100755
index 0000000..5e341e7
--- /dev/null
+++ b/scripts/id_messages.sh
@@ -0,0 +1,22 @@
+#!/bin/sh +x
+
+. ./include.sh
+
+json="{
+ \"method\": \"i18n_messages\",
+ \"params\": [
+ [ ],
+ { }
+ ],
+ \"id\": 0
+}"\
+
+curl\
+ -H "Content-Type: application/json"\
+ -H "Accept: applicaton/json"\
+ -H "Accept-Language: id"\
+ --negotiate -u :\
+ --cacert /etc/ipa/ca.crt\
+ -d "$json"\
+ -X POST\
+ $IPA_JSON_URL