Skip to content

Commit

Permalink
Tweak postflight script to ensure plugin dirs are installed executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nevali committed Aug 25, 2009
1 parent 9deba82 commit 3c2b3ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Installer/scripts/postflight
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ rm -rf "$HOME/Library/Internet Plug-Ins/ClickToFlash.plugin"
rm -rf "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin"
mv /tmp/ClickToFlash.webplugin "$HOME/Library/Internet Plug-Ins/"
chown -R $USER "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin"
chmod -R 664 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin"
find "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin" -type d -exec chmod 755 \{} \;
find "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin" -type f -exec chmod 644 \{} \;
chmod 775 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin/Contents/MacOS/ClickToFlash"
chmod 775 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle"
chmod 775 "$HOME/Library/Internet Plug-Ins/ClickToFlash.webplugin/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/relaunch"
pkgutil --forget com.github.rentzsch.clicktoflash.pkg

exit 0
exit 0

0 comments on commit 3c2b3ac

Please sign in to comment.