mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-08 02:25:34 +08:00
16 lines
479 B
Bash
16 lines
479 B
Bash
#!/bin/bash
|
|
source $MICROMDM_ENV_PATH
|
|
endpoint="v1/commands"
|
|
jq -n \
|
|
--arg request_type "VerifyFirmwarePassword" \
|
|
--arg udid "$1" \
|
|
--arg password $2 \
|
|
--arg request_requires_network_tether $3 \
|
|
--arg allow_oroms $4 \
|
|
'.udid = $udid
|
|
|.password = $current_password
|
|
|.request_requires_network_tether = $request_requires_network_tether
|
|
|.request_type = $request_type
|
|
'|\
|
|
curl $CURL_OPTS -K <(cat <<< "-u micromdm:$API_TOKEN") "$SERVER_URL/$endpoint" -d@-
|