mirror of
https://github.com/PurpleComputing/mdmscripts.git
synced 2026-02-03 06:03:26 +00:00
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#!/bin/sh
|
|
#####################################################################################################
|
|
#
|
|
# ABOUT THIS PROGRAM
|
|
#
|
|
# NAME
|
|
# Installomator.sh -- Installs or updates Installomator
|
|
#
|
|
# SYNOPSIS
|
|
# sudo Installomator.sh
|
|
#
|
|
####################################################################################################
|
|
#
|
|
# HISTORY
|
|
#
|
|
# Version: 1.7
|
|
#
|
|
# - 1.0 Michael Tanner, 03.08.2022 Initial Build
|
|
#
|
|
####################################################################################################
|
|
# Script to download and install 1Password 7.
|
|
# Only works on Intel systems.
|
|
#
|
|
mkdir -p /Library/Caches/com.purplecomputing.mdm/
|
|
chmod 777 /Library/Caches/com.purplecomputing.mdm/
|
|
cd /Library/Caches/com.purplecomputing.mdm/
|
|
mkdir -p Apps
|
|
cd Apps
|
|
rm -rf Installomator*
|
|
REPO=Installomator/Installomator
|
|
DLURL=$(curl -s https://api.github.com/repos/${REPO}/releases/latest | awk -F\" '/browser_download_url.*.pkg/{print $(NF-1)}')
|
|
echo Download is $DLURL
|
|
curl -s -L $DLURL -O
|
|
installer -pkg Installomator*.pkg -target /
|
|
rm -rf Installomator*
|
|
/usr/local/Installomator/Installomator.sh longversion
|
|
|
|
curl -LO https://github.com/Mac-Nerd/patchomator/raw/main/patchomator.sh
|
|
chmod a+x patchomator.sh
|
|
mv patchomator.sh /usr/local/Installomator/
|