config is in mono-xsp4 4.2-2build1.
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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | #!/bin/bash -e
# Initialization
. /usr/share/debconf/confmodule
db_version 2.0
db_capb backup
db_title XSP4 WebServer
# XSP1
if [ -d /etc/xsp/conf.d ] && [ "`ls /etc/xsp/conf.d/ | grep -v ^asp.net-examples$ | grep -v ^monodoc-http$ | wc -l`" -gt 0 ]; then
set +e
db_fget xsp4/xsp1_upgrade_warning seen
seenflag=$?
set -e
case $seenflag in
0)
if [ "$RET" = false ]; then
db_input high xsp4/xsp1_upgrade_warning || true
fi
;;
10)
db_input high xsp4/xsp1_upgrade_warning || true
;;
*)
echo "db_fget exited with $seenflag" >&2
exit $err
;;
esac
db_fset xsp4/xsp1_upgrade_warning seen true || true
db_go || true
fi
# XSP2
if [ -d /etc/xsp2/conf.d ] && [ "`ls /etc/xsp2/conf.d/ | grep -v ^asp.net-examples$ | grep -v ^monodoc-http$ | wc -l`" -gt 0 ]; then
set +e
db_fget xsp4/xsp2_upgrade_warning seen
seenflag=$?
set -e
case $seenflag in
0)
if [ "$RET" = false ]; then
db_input high xsp4/xsp2_upgrade_warning || true
fi
;;
10)
db_input high xsp4/xsp2_upgrade_warning || true
;;
*)
echo "db_fget exited with $seenflag" >&2
exit $err
;;
esac
db_fset xsp4/xsp2_upgrade_warning seen true || true
db_go || true
fi
# get existing values
xsp4_default="/etc/default/mono-xsp4"
if [ -e $xsp4_default ]; then
. $xsp4_default || true
db_set xsp4/xsp4_autostart "$start_boot"
db_set xsp4/xsp4_bind "$address"
db_set xsp4/xsp4_port "$port"
fi
# Autostart
STATE=1
while [ "$STATE" != 0 -a "$STATE" != 2 ]; do
case "$STATE" in
1)
db_input medium xsp4/xsp4_autostart || true
if db_go; then
db_get xsp4/xsp4_autostart || true
if [ "$RET" = "true" ]; then
STATE=2
else
db_set xsp4/xsp4_autostart false || true
STATE=2
fi
else
STATE=0
fi
;;
esac
done
if [ "$STATE" = 0 ]; then
exit 1
fi
# Bind
STATE=1
while [ "$STATE" != 0 -a "$STATE" != 2 ]; do
case "$STATE" in
1)
db_input medium xsp4/xsp4_bind || true
if db_go; then
db_get xsp4/xsp4_bind || true
STATE=2
else
STATE=0
fi
;;
esac
done
if [ "$STATE" = 0 ]; then
exit 1
fi
# Port
STATE=1
while [ "$STATE" != 0 -a "$STATE" != 2 ]; do
case "$STATE" in
1)
db_input medium xsp4/xsp4_port || true
if db_go; then
db_get xsp4/xsp4_port || true
STATE=2
else
STATE=0
fi
;;
esac
done
if [ "$STATE" = 0 ]; then
exit 1
fi
|