config is in mono-xsp4 2.10-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 | #!/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 xsp2/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
# 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
|