Billy H
07/28/2025, 1:19 PMUnthread
07/28/2025, 2:09 PMBilly H
07/28/2025, 2:10 PMBilly H
07/29/2025, 7:41 PMUnthread
07/30/2025, 4:08 PMBilly H
07/30/2025, 4:09 PMUnthread
07/30/2025, 4:10 PMBilly H
07/30/2025, 4:38 PMscript_execution_timeout
is 3600 seconds
#!/bin/sh
# This is the bootstrap script to get the machine to a desired state
#######################################################################
# Install EDR Endpoint Protection
# Download EDR installer
curl -o /tmp/EDR_installer.zip <https://sanitizedurlgoeshere/EDRInstall.zip>
# Unzip the installer silently
unzip /tmp/EDR_installer.zip -d /tmp/EDR_installer > /dev/null
# Run the installer
EDR_DIR="/tmp/EDR_installer"
chmod a+x $EDR_DIR/EDR\ <http://Installer.app/Contents/MacOS/EDR\|Installer.app/Contents/MacOS/EDR\> Installer
chmod a+x $EDR_DIR/EDR\ <http://Installer.app/Contents/MacOS/tools/com.EDR.bootstrap.helper|Installer.app/Contents/MacOS/tools/com.EDR.bootstrap.helper>
$EDR_DIR/EDR\ <http://Installer.app/Contents/MacOS/EDR\|Installer.app/Contents/MacOS/EDR\> Installer --quiet
# Cleanup
rm -rf /tmp/EDR_installer.zip /tmp/EDR_installer
echo "EDR installation complete!"
#######################################################################
# Install Password Manager
echo "Installing Password Manager..."
sudo /usr/local/bin/catalog -i com.password.manager -s
# Install ticket software
echo "Installing ticket software is not installed..."
sudo /usr/local/bin/catalog -i com.ticket.software -s
#######################################################################
# if arm64, install Rosetta for compatibility
arch_value=$(arch)
if [ "$arch_value" == "arm64" ]; then
echo "ARM64 architecture detected. Installing Rosetta..."
sudo /usr/sbin/softwareupdate --install-rosetta --agree-to-license
fi
# install cli tool from github
URL="<https://api.github.com/repos/sanitized/app/releases?q=cli/latest>"
curl -s $URL | awk -F\" '/browser_download_url.*app-cli-macos-.*\.pkg/ {print $(NF-1)}' | sort -V | tail -n 1 | xargs -I {} curl -o /tmp/app.pkg -L {}
sudo installer -pkg /tmp/app.pkg -target /
rm /tmp/app.pkg
echo "Exiting."
exit 0