aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/condor/pkg-install
blob: 93f054e1ce4324584472555e09201c767529c63f (plain) (blame)
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
37
#!/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
##########################################################################

u=condor
g=condor

# Place condor on a large partition so it can accommodate output files from
# jobs.  The default /var/db/condor could result in /var filling up with
# job output.
homedir=/home/condor

case $2 in
POST-INSTALL)
    for dir in log spool config execute; do
    mkdir -p $homedir/$dir
    done
    chown -Rh $u:$g $homedir
    # Insurance in case pkg-deinstall was not executed
    /bin/rm -f /var/db/condor
    /bin/ln -s $homedir /var/db
    ;;
esac