1. Perry Metzger
  2. growl

Commits

evands  committed f6e60df

Finished fixing the GrowlMail installation process, I think.

  • Participants
  • Parent commits 3b0bc3d
  • Branches default

Comments (0)

Files changed (1)

File Release/GrowlMail/scripts/postflight.sh

View file
 #
 # Mail must NOT be running by the time this script executes
 ######
-defaults write com.apple.mail EnableBundles -bool YES
+if [ `whoami` == root ] ; then
+    #defaults acts funky when asked to write to the root domain but seems to work with a full path
+    defaults write /Library/Preferences/com.apple.mail EnableBundles -bool YES
 
-# Mac OS X 10.5's Mail.app requires bundle version 3 or greater
-defaults write com.apple.mail BundleCompatibilityVersion -int 3
+    # Mac OS X 10.5's Mail.app requires bundle version 3 or greater
+    defaults write /Library/Preferences/com.apple.mail BundleCompatibilityVersion -int 3
+else
+    defaults write com.apple.mail EnableBundles -bool YES
+
+    # Mac OS X 10.5's Mail.app requires bundle version 3 or greater
+    defaults write com.apple.mail BundleCompatibilityVersion -int 3
+fi