blob: e17e2e0ebab88d3739f2a9246cc930b8380839d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# site = location
# sitegroup = sublocation
# sitecontact = comma-separated list of emails to site contacts
# hostclass = type of host (server, workstation, laptop, etc)
mkdir siteinfo && cd siteinfo
for filename in site sitegroup sitecontact hostclass ; do
file=/etc/sitesummary/$filename
if [ -f $file ] ; then
cp $file $filename
fi
done
|