afd7699 Ticket 47913 - remove-ds.pl should not remove /var/lib/dirsrv

Authored and Committed by mreynolds 8 years ago
    Ticket 47913 - remove-ds.pl should not remove /var/lib/dirsrv
    
    Bug Description:  When removing the last instance, the remove-ds.pl
                      script is incorrectly removing the /var/lib/dirsrv
                      directory.
    
    Fix Description:  Only /var/lock/dirsrv & /var/run/dirsrv have their
                      ownership changed during an install, so only these
                      directories need to be removed.  Also, changed this
                      cleanup code to be run only if there are no errors.
    
    https://fedorahosted.org/389/ticket/47913
    
    Reviewed by: nhosoi(Thanks!)