This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

setup preremove postremove


Hi everyone

Sorry if this post should have gone elsewhere (I'm sure somebody
will correct it ;)

I'm museing about trying to get /etc/profile to update
itself.  What I'm currently debating is a script which runs
before the new files are installed which compares
/etc/profile with /etc/defaults/etc/profile and, if they are
identical, deletes /etc/profile (and possibly doing the same
for all the other files in the base-files package).

My question is this, where should the script reside; preremove
or postremove?  What's the difference?  How can any script
in postremove run when setup should have removed all files
for a package?  Does either/both get run for a package
update?

:)

Thanks,

J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]