Hajducko, Steven
2008-05-21 22:17:16 UTC
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.
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.