Removing directories/files in RPM erase

"Hajducko, Steven" <[email protected]> Wed, 21 May 2008 15:17:16 -0700
Newsgroups gmane.linux.redhat.rpm.general,gmane.spam.detected
Message-ID <21F8C5D33731F44BB9DCC396A12F9F210A611122@WLVEXM01.corp.ad.diginsite.com>
So what's the best practice for removing directories that your RPM owns that contain files that the RPM doesn't know about?
 
For instance, I've got an rpm that creates several directories and installs a utility.  When I start the tool and it's clients, it starts creating files in one of the directories that the RPM owns ( ssl certs, logs, etc ).
 
However, when I remove the RPM, it doesn't remove the directories because they aren't empty.  Should I setup a post uninstall to see if this is the last instance of the package and if it is, manually remove those directories?
 
Suggestions welcome.
 
.....................................................................
Steven Hajducko
Systems Engineer, Systems Integration
w: 818.597.6443   m: 805.377.9074
  

This email may contain confidential and privileged material for
the sole use of the intended recipient. Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient please contact the sender and delete all copies.

_______________________________________________
Rpm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rpm-list
emailSign_logo2.gif (image/gif, 1.3 KB) - not displayed