config is in htcondor 8.4.2~dfsg.1-1build1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
| 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | #!/bin/bash
set -e
# shortcut to query condors configuration without interpreting its
# macros
ccv() {
    condor_config_val -dump |grep "^${1}\s=" | sed -e "s/^${1}\s=\s//"
}
. /usr/share/debconf/confmodule
db_version 2.0
db_capb backup
db_settitle condor/title
# if we have a working condor config query it to charge debconf
# hmmm '&> /dev/null' would ruin the logic ... strange
if condor_config_val -config 1> /dev/null 2> /dev/null; then
    if [ "$(ccv CONDOR_DEVELOPERS)" = "NONE" ]; then
        db_set condor/phonehome false
    else
        db_set condor/phonehome true
    fi
    if [ "$(ccv START)" = "TRUE" ]; then
        db_set condor/startpolicy true
    else
        db_set condor/startpolicy false
    fi
    db_set condor/reservedmemory "$(ccv RESERVED_MEMORY)"
    db_set condor/admin "$(ccv CONDOR_ADMIN)"
    db_set condor/filesystemdomain "$(ccv FILESYSTEM_DOMAIN)"
    db_set condor/uiddomain "$(ccv UID_DOMAIN)"
    db_set condor/centralmanager "$(ccv CONDOR_HOST)"
    db_set condor/allowwrite "$(ccv ALLOW_WRITE)"
    # figure out roles
    condor_daemons=$(ccv DAEMON_LIST)
    [[ "$condor_daemons" =~ "COLLECTOR" ]] \
        && condor_roles+="${condor_roles:+, }COLLECTOR:NEGOTIATOR"
    [[ "$condor_daemons" =~ "SCHEDD" ]] \
        && condor_roles+="${condor_roles:+, }SCHEDD"
    [[ "$condor_daemons" =~ "STARTD" ]] \
        && condor_roles+="${condor_roles:+, }STARTD"
    db_set condor/daemons "$condor_roles"
fi
# initial check whether our service is wanted
# stop here if not
db_input high condor/wantdebconf || true
db_go # need to run once to get db_get to work
db_get condor/wantdebconf
if [ "$RET" = "false" ]; then
    exit 0
fi
# This implements a simple state machine so the back button can be handled.
# taken from debconf demo example
MAX_STATE=6
STATE=1
while [ "$STATE" != 0 -a "$STATE" != "$MAX_STATE" ]; do
    case $STATE in
        1)
            db_input high condor/personal || true
        ;;
        2)
            db_beginblock
            db_input low condor/startpolicy || true
            db_input low condor/reservedmemory || true
            db_input low condor/admin || true
            db_input low condor/phonehome || true
            db_endblock
        ;;
        3)
            db_get condor/personal
            if [ "$RET" = "true" ]; then
                # for the initial configuration of a personal condor, we want
                # all jobs to start right away, regardless of machine activity
                # (but only force this setting if the user never had the chance
                # to indicate something else)
                db_fget condor/startpolicy seen
                if [ "$RET" = "false" ]; then
                    db_set condor/startpolicy true
                fi
                # skip over all other questions
                STATE=$MAX_STATE
                continue
            fi
            db_input high condor/daemons || true
        ;;
        4)
            db_beginblock
            db_input high condor/filesystemdomain || true
            db_input high condor/uiddomain || true
            db_input high condor/centralmanager || true
            db_endblock
        ;;
        5)
            db_input critical condor/allowwrite || true
        ;;
    esac
    if db_go; then
        STATE=$(($STATE + 1))
    else
        STATE=$(($STATE - 1))
    fi
done
db_stop
 |