mirror of
https://github.com/micromdm/micromdm/
synced 2026-06-17 08:45:57 +08:00
15 lines
370 B
Bash
Executable File
15 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
source $MICROMDM_ENV_PATH
|
|
endpoint="v1/commands"
|
|
jq -n \
|
|
--arg request_type "InstallApplication" \
|
|
--arg udid "$1" \
|
|
--arg manifest_url "$2" \
|
|
'.udid = $udid
|
|
|.request_type = $request_type
|
|
|.manifest_url = $manifest_url
|
|
'|\
|
|
curl $CURL_OPTS \
|
|
-H "Content-Type: application/json" \
|
|
-u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
|