mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-09 02:55:59 +08:00
Adds command to install apps from the AppStore (#545)
This commit is contained in:
committed by
Victor Vrantchan
parent
94db5f75a4
commit
f909214f88
14
tools/api/commands/install_appstore_application
Normal file
14
tools/api/commands/install_appstore_application
Normal 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@-
|
||||
Reference in New Issue
Block a user