blob: 88dddcc61bf147e41724b3b683e0da25aedb6b38 (
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
|
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_get sitesummary/collector_url
URL="$RET"
db_get sitesummary/site
SITE="$RET"
# Only replace the site file if the content changed
if [ -f /etc/sitesummary/site ] ; then
OLDSITE=`cat /etc/sitesummary/site`
if [ "$SITE" != "$OLDSITE" ] ; then
echo "$SITE" > /etc/sitesummary/site
fi
else
echo "$SITE" > /etc/sitesummary/site
fi
db_stop
#DEBHELPER#
|