mirror of
https://github.com/fleetdm/fleet
synced 2026-05-01 18:37:37 +00:00
for #22774 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
30 lines
749 B
Bash
30 lines
749 B
Bash
#!/bin/sh
|
|
|
|
# variables
|
|
APPDIR="/Applications/"
|
|
TMPDIR=$(dirname "$(realpath $INSTALLER_PATH)")
|
|
|
|
# install pkg files
|
|
|
|
CHOICE_XML=$(mktemp /tmp/choice_xml_XXX)
|
|
|
|
cat << EOF > "$CHOICE_XML"
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<array>
|
|
<dict>
|
|
<key>attributeSetting</key>
|
|
<integer>0</integer>
|
|
<key>choiceAttribute</key>
|
|
<string>selected</string>
|
|
<key>choiceIdentifier</key>
|
|
<string>com.microsoft.package.Microsoft_AutoUpdate.app</string>
|
|
</dict>
|
|
</array>
|
|
</plist>
|
|
|
|
EOF
|
|
|
|
sudo installer -pkg "$TMPDIR"/MicrosoftEdge-128.0.2739.67.pkg -target / -applyChoiceChangesXML "$CHOICE_XML"
|
|
|