Re: Editing a file by postinstall script
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Sent from my iPhone On Jun 15, 2010, at 11:44 AM, kushal ghosh <kghoshnitk@gmail.com> wrote: Hi, Thanks _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/greg.neagle%40disneyani... _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... That's a known issue with using the defaults command. Either save and restore ownership/permissions, or use another tool like PlistBuddy to edit the plist. I am editing a plist file by the postinstall script by "defaults write" command. The plist file also gets installed by the package. The problem I am facing is after the installation is complete the file does not have any permission for the group or others. Hence it cannot be read even. But the file is properly edited which I could know after giving the necessary permissions. Currently the work around I am doing is creating a backup plist file, editing it and copying it back to original one. Any suggestions on how to edit the original plist file without disturbing its permissions? This email sent to greg.neagle@disneyanimation.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Greg Neagle