I need to build a package installer that includes an application and
initial preferences. To avoid end-users being prompted to manually
setup the application, we want to include preferences with the
application. However, there is a line in the preferences that requires
the name of the current machine be present, to prevent prompting of
the end user.
So basically this is a find a specific string of text, and then
replace it. The first part of the string is merely:
[client-settings_
which is then followed by the machines full bonjour name, and then a
closed bracket. I've been told a sed or awk based postinstall script
could help with this task.
The next task, is a file with an essentially random name, but in a
very specific location, essentially 100% guaranteed to be present,
needs to be duplicated, renamed (to a specific and static name), and
then moved down one directory. But only if there isn't already a file
of the same name present.
The last task, is to set permissions on the prefs such that the user
can read but not write (don't want them making changes to the settings).
Seems really really simple, but would probably take me hours to do
this instead of likely an hour or less for someone who knows how to do
this. I'd expect all tasks could be in the same postinstall script,
which would then be run by Apple's package installer, remotely, on
each machine. So if someone is interested in this work, email me
offline -
chris@...
Thanks,
Chris Murphy
_______________________________________________
MacOSX-admin mailing list
MacOSX-admin@...
http://www.omnigroup.com/mailman/listinfo/macosx-admin