blob: aafa011025facb322ab5f736afaad62517d4a979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/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
|