mirror of
https://github.com/tommytran732/macOS-Setup-Script
synced 2024-12-22 07:21:33 -05:00
Add Edge Enterprise Policies
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
8c75440601
commit
6261bd3d17
@ -33,3 +33,14 @@ sudo chmod 644 /etc/chrony.d/chrony.conf
|
||||
|
||||
#Install Rosetta
|
||||
softwareupdate --install-rosetta
|
||||
|
||||
umask 022
|
||||
|
||||
# Setup Edge Enterprise Policies
|
||||
sudo mkdir -p '/Library/Tomster Corporation/scripts/' '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/etc/Library/Tomster%20Corporation/apply_prefs.sh | sudo tee '/etc/Library/Tomster Corporation/apply_prefs.sh'
|
||||
sudo chmod 744 '/Library/Tomster Corporation/scripts/apply_prefs.sh'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/etc/Library/LaunchDaemons/io.tommytran.prefs.list | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
||||
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist
|
16
etc/Library/LaunchDaemons/io.tommytran.prefs.plist
Normal file
16
etc/Library/LaunchDaemons/io.tommytran.prefs.plist
Normal file
@ -0,0 +1,16 @@
|
||||
<?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">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>io.tommytran.prefs</string>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>LaunchOnlyOnce</key>
|
||||
<true/>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/Library/Tomster Corporation/scripts/apply_prefs.sh</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
4
etc/Library/Tomster Corporation/scripts/apply_prefs.sh
Normal file
4
etc/Library/Tomster Corporation/scripts/apply_prefs.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/zsh
|
||||
|
||||
/bin/sleep 5
|
||||
/bin/cp -r '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences/'
|
13
primary.sh
13
primary.sh
@ -13,4 +13,15 @@ echo "VerifyHostKeyDNS yes" | sudo tee /etc/ssh/ssh_config.d/10-custom.conf
|
||||
sudo chmod 644 /etc/ssh/ssh_config.d/10-custom.conf
|
||||
|
||||
# Enable Safari debug menu
|
||||
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
||||
defaults write com.apple.Safari IncludeInternalDebugMenu 1
|
||||
|
||||
umask 022
|
||||
|
||||
# Setup Edge Enterprise Policies
|
||||
sudo mkdir -p '/Library/Tomster Corporation/scripts/' '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/etc/Library/Tomster%20Corporation/apply_prefs.sh | sudo tee '/etc/Library/Tomster Corporation/apply_prefs.sh'
|
||||
sudo chmod 744 '/Library/Tomster Corporation/scripts/apply_prefs.sh'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Managed%20Preferences/com.microsoft.Edge.plist | sudo tee '/Library/Tomster Corporation/prefs/com.microsoft.Edge.plist'
|
||||
curl https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/macOS/Preferences/com.microsoft.Edge.plist | sudo tee /Library/Preferences/com.microsoft.Edge.plist
|
||||
curl https://raw.githubusercontent.com/TommyTran732/macOS-Setup-Script/etc/Library/LaunchDaemons/io.tommytran.prefs.list | sudo tee /etc/Library/LaunchDaemons/io.tommytran.prefs.list
|
||||
sudo launchctl load /Library/LaunchDaemons/io.tommytran.prefs.plist
|
Loading…
Reference in New Issue
Block a user