mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-05 17:05:51 +08:00
Output base64 encoded data on one line in command examples (#477)
* base64 -> openssl base64 -A output base64 encoded data on one line, on both linux and macos * base64 -> openssl base64 -A output base64 encoded data on one line, on both linux and macos * Update install_profile * Update install_provisioning_profile
This commit is contained in:
@@ -4,7 +4,7 @@ endpoint="v1/commands"
|
||||
jq -n \
|
||||
--arg request_type "InstallProfile" \
|
||||
--arg udid "$1" \
|
||||
--arg payload $(cat $2|base64) \
|
||||
--arg payload "$(cat $2|openssl base64 -A)" \
|
||||
'.udid = $udid
|
||||
|.payload = $payload
|
||||
|.request_type = $request_type
|
||||
|
||||
@@ -4,7 +4,7 @@ endpoint="v1/commands"
|
||||
jq -n \
|
||||
--arg request_type "InstallProvisioningProfile" \
|
||||
--arg udid "$1" \
|
||||
--arg provisioning_profile $(cat $2|base64) \
|
||||
--arg provisioning_profile "$(cat $2|openssl base64 -A)" \
|
||||
'.udid = $udid
|
||||
|.provisioning_profile = $provisioning_profile
|
||||
|.request_type = $request_type
|
||||
|
||||
Reference in New Issue
Block a user