aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary-client.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sitesummary-client.postinst')
-rw-r--r--debian/sitesummary-client.postinst13
1 files changed, 12 insertions, 1 deletions
diff --git a/debian/sitesummary-client.postinst b/debian/sitesummary-client.postinst
index 460f1a0..b334505 100644
--- a/debian/sitesummary-client.postinst
+++ b/debian/sitesummary-client.postinst
@@ -36,7 +36,6 @@ fi
db_get sitesummary-client/site
SITE="$RET"
-
# Only replace the site file if the content changed
if [ -f /etc/sitesummary/site ] ; then
OLDSITE=`cat /etc/sitesummary/site`
@@ -47,6 +46,18 @@ else
echo "$SITE" > /etc/sitesummary/site
fi
+db_get sitesummary-client/sitegroup
+SITEGROUP="$RET"
+# Only replace the sitegroup file if the content changed
+if [ -f /etc/sitesummary/sitegroup ] ; then
+ OLDSITE=`cat /etc/sitesummary/sitegroup`
+ if [ "$SITEGROUP" != "$OLDSITEGROUP" ] ; then
+ echo "$SITEGROUP" > /etc/sitesummary/sitegroup
+ fi
+else
+ echo "$SITEGROUP" > /etc/sitesummary/sitegroup
+fi
+
db_stop
#DEBHELPER#