HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/sysutils/condor/pkg-deinstall
#!/bin/sh

##########################################################################
#   Script description:
#       Install script for Condor scheduler
#
#   Arguments:
#       $1 = port name
#       $2 = mode (e.g. 'POST-INSTALL')
#
#   Returns:
#       Standard
#
#   History:
#   Date        Name        Modification
#   2011-11-22  J Bacon     Derived from Ganglia pkg-install
##########################################################################

case $2 in
DEINSTALL)
    # Old log, spool, etc. in /home/condor are deleted if empty, otherwise
    # left in place, this could leave incompatible
    # older files in place when Condor is upgraded.  Not sure how backward
    # compatible condor versions are with respect to logs, etc.  For now,
    # the syadmin is left to deal with this.

    # Remove the link to /home/condor
    rm -f /var/db/condor
    # Remove /home/condor, if empty
    rmdir /home/condor/config
    rmdir /home/condor/execute
    rmdir /home/condor/log
    rmdir /home/condor/spool
    rmdir /home/condor
    ;;
esac