-
Notifications
You must be signed in to change notification settings - Fork 0
/
dropbox.sh
36 lines (36 loc) · 1.11 KB
/
dropbox.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/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 dropbox DEBUG=0 NOTIFY=all