aboutsummaryrefslogtreecommitdiffstats
path: root/debian/sitesummary-client.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/sitesummary-client.config')
-rw-r--r--debian/sitesummary-client.config13
1 files changed, 10 insertions, 3 deletions
diff --git a/debian/sitesummary-client.config b/debian/sitesummary-client.config
index aed5d63..ac5ebab 100644
--- a/debian/sitesummary-client.config
+++ b/debian/sitesummary-client.config
@@ -20,15 +20,22 @@ db_input medium sitesummary-client/collector_url || true
db_go || true
if [ -f /etc/sitesummary/site ] ; then
- SITE=`cat /etc/sitesummary/site`
+ SITE="`cat /etc/sitesummary/site`"
db_set sitesummary-client/site "$SITE"
fi
db_input medium sitesummary-client/site || true
db_go || true
if [ -f /etc/sitesummary/sitegroup ] ; then
- SITE=`cat /etc/sitesummary/sitegroup`
- db_set sitesummary-client/sitegroup "$SITE"
+ SITEGROUP="`cat /etc/sitesummary/sitegroup`"
+ db_set sitesummary-client/sitegroup "$SITEGROUP"
fi
db_input medium sitesummary-client/sitegroup || true
db_go || true
+
+if [ -f /etc/sitesummary/hostclass ] ; then
+ HOSTCLASS="`cat /etc/sitesummary/hostclass`"
+ db_set sitesummary-client/hostclass "$HOSTCLASS"
+fi
+db_input medium sitesummary-client/hostclass || true
+db_go || true