Adds command to install apps from the AppStore (#545)

This commit is contained in:
Tobias Baube
2018-11-23 06:14:18 +01:00
committed by Victor Vrantchan
parent 94db5f75a4
commit f909214f88

View File

@@ -0,0 +1,14 @@
#!/bin/bash
source $MICROMDM_ENV_PATH
endpoint="v1/commands"
jq -n \
--arg request_type "InstallApplication" \
--arg udid "$1" \
--arg identifier "$2" \
'.udid = $udid
|.request_type = $request_type
|.identifier = $identifier
'|\
curl $CURL_OPTS \
-H "Content-Type: application/json" \
-u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-