Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@calum-github
Created January 7, 2016 02:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calum-github/d9e799af5ed65ffa2f6d to your computer and use it in GitHub Desktop.
Save calum-github/d9e799af5ed65ffa2f6d to your computer and use it in GitHub Desktop.
pre-install
#!/bin/bash
# Author: Calum Hunter
# Date: 06/01/2016
# Version: 0.2
#
# Pre-install for Chrome Preferences
# Remove the existing preferences in the
# System user template if they exist
# Also remove the Google Master Preferences
# If it exists so that we can install a clean copy
# Remove Existing Master Preferences File if it exists
if [ -r "/Library/Google/Google Chrome Master Preferences" ]; then
rm -rf "/Library/Google/Google Chrome Master Preferences"
fi
# Remove Existing User Template Preferences
if [ -d "/System/Library/User Template/English.lproj/Library/Application Support/Google/Chrome" ]; then
rm -rf "/System/Library/User Template/English.lproj/Library/Application Support/Google/Chrome"
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment