aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d/siteinfo
blob: 73ad428ea9113e2390c824bd65a79565084e5a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# site        = location
# sitegroup   = sublocation
# hostclass   = type of host (server, workstation, laptop, etc)

mkdir siteinfo && cd siteinfo
for filename in site sitegroup hostclass ; do
    file=/etc/sitesummary/$filename
    if [ -f $file ] ; then
	cp $file $filename
    fi
done