Fix "Remove Apple Remote Desktop Settings"

Fix "Remove Apple Remote Desktop Settings" so it doesn't fight with the defaults system and make the commands independent of each other since some of the items being removed may not currently exist
This commit is contained in:
Perry Clarke 2015-10-24 13:08:43 -07:00
parent bde9225ec2
commit 2b312e90ed

View File

@ -121,11 +121,11 @@ find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print |\se
#### Remove Apple Remote Desktop Settings
```bash
sudo rm -rf /var/db/RemoteManagement && \
sudo rm /Library/Preferences/com.apple.RemoteDesktop.plist && \
rm ~/Library/Preferences/com.apple.RemoteDesktop.plist && \
sudo rm -r /Library/Application\ Support/Apple/Remote\ Desktop/ && \
rm -r ~/Library/Application\ Support/Remote\ Desktop/ && \
sudo rm -rf /var/db/RemoteManagement ; \
sudo defaults delete /Library/Preferences/com.apple.RemoteDesktop.plist ; \
defaults delete ~/Library/Preferences/com.apple.RemoteDesktop.plist ; \
sudo rm -r /Library/Application\ Support/Apple/Remote\ Desktop/ ; \
rm -r ~/Library/Application\ Support/Remote\ Desktop/ ; \
rm -r ~/Library/Containers/com.apple.RemoteDesktop
```