mirror of
https://github.com/micromdm/micromdm/
synced 2026-06-24 22:45:46 +08:00
13 lines
316 B
Bash
Executable File
13 lines
316 B
Bash
Executable File
#!/bin/bash
|
|
source $MICROMDM_ENV_PATH
|
|
endpoint="v1/commands"
|
|
jq -n \
|
|
--arg request_type "InstallProfile" \
|
|
--arg udid "$1" \
|
|
--arg payload $(cat $2|base64) \
|
|
'.udid = $udid
|
|
|.payload = $payload
|
|
|.request_type = $request_type
|
|
'|\
|
|
curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
|